* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Background Video */
#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

/* Section */
section {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(#000, rgb(33, 21, 41), #000);
  animation: animate 5s linear infinite;
  z-index: -1;
}

@keyframes animate {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* Form Card */
.signin {
  width: 400px;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
  z-index: 10;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 35px;
  color: #fff;
}

h2 {
  text-align: center;
  text-transform: uppercase;
}

/* Inputs */
.form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.inputBox {
  position: relative;
}

.inputBox input {
  width: 100%;
  padding: 25px 10px 8px;
  background: #333;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1em;
}

.inputBox i {
  position: absolute;
  left: 10px;
  top: 16px;
  color: #918f8f;
  transition: 0.4s;
  pointer-events: none;
}

.inputBox input:focus ~ i,
.inputBox input:valid ~ i {
  transform: translateY(-10px);
  font-size: 0.8em;
  color: #efa4db;
}

/* Submit Button */
input[type="submit"] {
  background: rgb(243, 8, 90);
  padding: 12px;
  border: none;
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
}

input[type="submit"]:active {
  opacity: 0.7;
}

/* ===== Loading Overlay ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.hidden {
  display: none;
}

.loader-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  padding: 40px 50px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
}

/* Spinner */
.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid rgb(243, 8, 90);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success { color: #00ffb3; }
.error { color: #ff6b6b; }
