/* ============================================================
   Auth Pages
   ============================================================ */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f2027 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.auth-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}
.auth-bg-shape-1 {
  width: 500px; height: 500px;
  top: -150px; left: -100px;
  background: var(--primary, #25D366);
}
.auth-bg-shape-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -80px;
  background: #3b82f6;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.signup-form .signup-full { grid-column: 1 / -1; }
.auth-wrapper:has(.signup-form) { max-width: 570px; }
.auth-wrapper:has(.signup-form) .auth-card { padding: 26px 28px; }
.auth-wrapper:has(.signup-form) .auth-header { margin-bottom: 18px; }
.auth-wrapper:has(.signup-form) .auth-title { margin-top: 14px; font-size: 24px; }
.auth-wrapper:has(.signup-form) .form-group { margin-bottom: 14px; }
.auth-wrapper:has(.signup-form) .form-control { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.auth-wrapper:has(.signup-form) .auth-footer { margin-top: 18px; }

.auth-card {
  width: 100%;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl, 24px);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  color: #f1f5f9;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.5px;
}
.auth-logo img { height: 40px; max-width: 240px; object-fit: contain; }
.forgot-password-link {
  display: block;
  margin-top: 7px;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  margin-top: 20px;
}
.auth-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,.55);
}

/* Override form controls for dark auth card */
.auth-card .form-label { color: rgba(255,255,255,.7); }
.auth-card .form-control {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.auth-card .form-control::placeholder { color: rgba(255,255,255,.3); }
.auth-card .form-control:focus {
  border-color: var(--primary, #25D366);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(37,211,102,.2);
}
.auth-card .form-hint  { color: rgba(255,255,255,.4); }
.auth-card .input-icon { color: rgba(255,255,255,.35); }

.auth-card select.form-control option { background: #1e293b; color: #f1f5f9; }

/* Primary button in auth */
.auth-card .btn-primary {
  background: var(--primary, #25D366);
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius, 10px);
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.auth-card .btn-primary:hover { background: #1ebe5d; box-shadow: 0 6px 24px rgba(37,211,102,.45); }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}
.auth-footer a { color: var(--primary, #25D366); font-weight: 600; }
.auth-footer a:hover { color: #1ebe5d; }
.signup-consent { display:flex; align-items:flex-start; gap:9px; margin:2px 0 14px; font-size:12px; line-height:1.5; color:rgba(255,255,255,.55); cursor:pointer; }
.signup-consent input { width:16px; height:16px; margin-top:1px; accent-color:var(--primary); flex:0 0 auto; }
.signup-consent a { color:var(--primary); font-weight:600; }

.auth-footer-text {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}
.auth-footer-text a { color: rgba(255,255,255,.5); }
.auth-footer-text a:hover { color: rgba(255,255,255,.8); }
.auth-socials { display:flex; justify-content:center; gap:8px; margin-top:-10px; }
.auth-socials a { width:30px; height:30px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.12); border-radius:50%; color:rgba(255,255,255,.55); }
.auth-socials a:hover { color:#fff; border-color:var(--primary); }

/* OTP input */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-input {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: var(--radius, 10px);
  color: #fff;
  outline: none;
  transition: all 0.2s;
}
.otp-input:focus { border-color: var(--primary, #25D366); background: rgba(255,255,255,.12); }

/* Divider */
.auth-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
  color: rgba(255,255,255,.3);
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(255,255,255,.1);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* OAuth button */
.btn-facebook {
  width: 100%;
  justify-content: center;
  background: #1877f2;
  color: #fff;
  padding: 11px;
  border-radius: var(--radius, 10px);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.btn-facebook:hover { background: #166fe5; color: #fff; }

/* Flash inside auth card */
.auth-card .flash { font-size: 13px; border-radius: var(--radius-sm, 6px); }

@media (max-width: 480px) {
  .auth-card { padding: 28px 24px; }
  .otp-input { width: 44px; height: 52px; font-size: 18px; }
}

@media (max-width: 680px) {
  .signup-form { grid-template-columns: 1fr; }
  .signup-form .signup-full { grid-column: auto; }
}
