.auth-body {
  background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* ✅ FIXED SCROLL ISSUE */
  overflow-x: hidden;
  overflow-y: auto;
  padding: 40px 0;
}

.auth-body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes moveBackground {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1rem;

  /* ensures proper centering */
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 12px;
  padding: 3rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e50914;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(229, 9, 20, 0.3);
}

.auth-subtitle {
  font-size: 1.1rem;
  color: #b3b3b3;
  margin: 0;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.form-label {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.auth-input {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.auth-input:focus {
  background-color: rgba(0, 0, 0, 0.7);
  border-color: #e50914;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.auth-input::placeholder {
  color: #666666;
}

.form-check-input {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  width: 1.2em;
  height: 1.2em;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: #e50914;
  border-color: #e50914;
}

.form-check-input:focus {
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-check-label {
  color: #b3b3b3;
  cursor: pointer;
  user-select: none;
}

.form-check-label a {
  color: #e50914;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.btn-login {
  background: linear-gradient(135deg, #e50914 0%, #c40812 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login:hover {
  background: linear-gradient(135deg, #c40812 0%, #a00610 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
  color: #ffffff;
}

.btn-login:active {
  transform: translateY(0);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #e50914;
  color: #ffffff;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(229, 9, 20, 0.3), transparent);
}

.auth-divider span {
  background: rgba(20, 20, 20, 0.95);
  padding: 0 1rem;
  color: #b3b3b3;
  font-size: 0.9rem;
  position: relative;
}

.alert {
  border-radius: 6px;
  border: none;
  margin-bottom: 1.5rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #51cf66;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
  margin: 0;
}

.auth-footer a {
  color: #e50914;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.spinner-border {
  border-color: rgba(255, 255, 255, 0.3);
  border-right-color: #ffffff;
}

/* Mobile */
@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-logo {
    font-size: 2rem;
  }

  .auth-subtitle {
    font-size: 1rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .auth-input {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 1.5rem 1rem;
  }

  .auth-logo {
    font-size: 1.75rem;
  }
}
