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

body {
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

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

/* Background Video */
#bgVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Section */
section {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

section::before {
  content: "";
  position: fixed;
  inset: 0;
  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: min(92vw, 420px);
  padding: clamp(20px, 4vw, 40px);
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
}

/* Content */
.content {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 35px);
  color: #fff;
}

h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 25px);
}

.inputBox {
  position: relative;
}

.inputBox input {
  width: 100%;
  padding: 24px 10px 8px;
  background: #333;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
}

.inputBox i {
  position: absolute;
  left: 10px;
  top: 16px;
  color: #918f8f;
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  transition: 0.4s;
  pointer-events: none;
}

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

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

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

/* Message */
#msg {
  text-align: center;
  font-size: 0.9rem;
}

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

/* Loader */
#themeLoader {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#themeLoader.active {
  opacity: 1;
  pointer-events: all;
}

.loaderCard {
  text-align: center;
  padding: 30px 36px;
  border-radius: 12px;
  background: rgba(30, 15, 45, 0.85);
  box-shadow: 0 0 40px rgba(243, 8, 90, 0.45);
  color: #fff;
}

.neonLoader {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.15);
  border-top: 4px solid #f3085a;
  animation: neonSpin 1s linear infinite;
}

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

/* Extra Mobile Safety */
@media (max-width: 480px) {
  #bgVideo {
    filter: brightness(0.6);
  }
}
