/* ═══════════════════════════════════════════════════
   B4S Auth Pages (Login, Register, Forgot Password)
   ═══════════════════════════════════════════════════ */

.auth-body {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(0,180,216,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0,90,150,.05) 0%, transparent 50%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* ── Auth card ────────────────────────────────────── */

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent-dark) 60%, transparent);
}

.auth-card-body { padding: 40px 36px; }

/* ── Auth Logo ────────────────────────────────────── */

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo-icon {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  line-height: 1;
}

.auth-logo-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #fff;
  margin-bottom: 4px;
}

.auth-logo-sub {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Auth form ────────────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Auth links ───────────────────────────────────── */

.auth-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.auth-links a {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .5px;
  text-decoration: none;
  transition: color var(--transition);
}

.auth-links a:hover { color: var(--accent); }

/* ── Guarantor autocomplete ───────────────────────── */

.autocomplete-wrap { position: relative; }

.autocomplete-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-top: none;
  z-index: 50;
  max-height: 180px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 9px 14px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.autocomplete-item:hover { background: var(--accent-dim); color: var(--accent); }

/* ── Success screen ───────────────────────────────── */

.auth-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 8px 0;
}

.auth-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--success);
  box-shadow: 0 0 20px rgba(46,196,182,.25);
}

.auth-success h3 { font-size: 15px; letter-spacing: 2px; }
.auth-success p  { color: var(--text-muted); font-size: 12px; line-height: 1.8; }

/* ── FIDO2 ────────────────────────────────────────── */

.fido2-info-box {
  background: rgba(0,180,216,.06);
  border: 1px solid rgba(0,180,216,.2);
  padding: 16px;
  text-align: center;
}

.fido2-info-icon { font-size: 28px; margin-bottom: 10px; }
.fido2-info-box p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.fido2-info-box strong { color: var(--accent); }

.fido2-hint { text-align: center; color: var(--text-muted); font-size: 11px; line-height: 1.5; }

.btn-fido2 {
  background: rgba(0,61,77,.4);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-fido2:hover:not(:disabled) { background: rgba(0,180,216,.12); }
