/* ============================================================
   auth.css — Login / Auth Page Styles
   ============================================================ */

.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(145deg, #12002b 0%, #0d1b4b 50%, #0a2a4a 100%);
  position: relative;
  overflow: hidden;
}

/* Animated blobs */
.auth-bg::before,
.auth-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blobMove 8s ease-in-out infinite alternate;
}
.auth-bg::before {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -80px; left: -80px;
}
.auth-bg::after {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #2563eb, transparent);
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}

@keyframes blobMove {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* Auth Card */
.auth-card {
  width: 100%;
  max-width: 390px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both;
}

/* Logo / Brand */
.auth-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}
.auth-title { 
  font-size: 2.2rem; 
  font-weight: 900; 
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}
.auth-subtitle { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 0.2rem; }

/* Input Group with icon */
.input-group {
  position: relative;
  margin-bottom: 1.1rem;
}
.input-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}
.input-group .form-control { padding-left: 2.75rem; }
.input-group .input-eye {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  display: flex;
}
.input-group .input-eye:hover { color: rgba(255,255,255,0.75); }

/* Submit button */
.auth-btn {
  width: 100%;
  padding: 0.95rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.28s ease;
  box-shadow: 0 6px 24px rgba(124,58,237,0.45);
  margin-top: 0.5rem;
}
.auth-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(124,58,237,0.55); }
.auth-btn:hover::before { opacity: 1; }
.auth-btn:active { transform: translateY(0); }

/* Error alert */
.auth-alert {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
}
.auth-alert.success {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: #34d399;
}

/* Rate limit counter */
.rate-badge {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
}
.rate-badge span { color: #f87171; font-weight: 700; }

/* Decorative particles */
.auth-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(100%) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ============================================================
   Mobile Responsive Overrides (Full Screen Experience)
   ============================================================ */
@media (max-width: 600px) {
  .auth-bg {
    padding: 2rem 1.5rem;
    align-items: center; /* Center vertically on mobile too but with different padding */
  }
  
  .auth-card {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    max-width: 100%;
  }

  .auth-title {
    font-size: 2.4rem;
  }

  .auth-subtitle {
    font-size: 0.95rem;
  }

  .input-group .form-control {
    padding: 1.1rem 1rem 1.1rem 3rem; /* Slightly taller inputs for mobile */
    font-size: 1.05rem;
  }

  .auth-btn {
    padding: 1.1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
  }
}
