/* =========================================================
   WebHat – Login & Register Page Styles
   ========================================================= */
body {
  font-family: var(--font-bn);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--topbar-height) + var(--header-height) + 40px) 24px 60px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #FFFFFF;
  border: 1px solid rgba(13, 27, 75, 0.08);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(13, 27, 75, 0.05);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-logo img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--off-white);
  border: 1px solid rgba(13, 27, 75, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast);
  outline: none;
}

.form-input::placeholder { color: rgba(13, 27, 75, 0.35); }

.form-input:focus {
  border-color: var(--brand-light);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-submit {
  width: 100%;
  padding: 14px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 50%, var(--brand-light) 100%);
  box-shadow: 0 4px 24px rgba(26, 86, 219, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.65);
}

.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--brand-light);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.auth-footer a:hover { color: var(--white); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

/* ---------- ALERTS ---------- */
.alert {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.alert--error ul { padding-left: 16px; }
.alert--error ul li { margin-bottom: 4px; }

.alert--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86EFAC;
}

/* ---------- INPUT WRAP (password show/hide) ---------- */
.input-wrap { position: relative; }

.input-wrap .form-input { padding-right: 48px; }

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.toggle-password:hover { color: var(--brand-light); }

/* ---------- FORM META (forgot link) ---------- */
.form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--brand-light);
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.forgot-link:hover { opacity: 1; }

/* ---------- FORM INPUT ERROR ---------- */
.form-input--error {
  border-color: rgba(239, 68, 68, 0.5) !important;
}
.form-input--error:focus {
  border-color: rgba(239, 68, 68, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ---------- SUCCESS STATE ---------- */
.auth-success { text-align: center; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ---------- HERO CTA GROUP ---------- */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

.cta-btn--lg {
  padding: 14px 32px !important;
  font-size: 1rem !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- HERO ORBS ---------- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--1 {
  width: 400px; height: 400px;
  background: rgba(26, 86, 219, 0.15);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 300px; height: 300px;
  background: rgba(59, 130, 246, 0.1);
  bottom: 0; right: -80px;
  animation-delay: -3s;
}

.hero-orb--3 {
  width: 200px; height: 200px;
  background: rgba(99, 102, 241, 0.1);
  top: 40%; left: 60%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}
