/* ============================================================
   auth.css — Lyceum of Alabang Alumni Tracer (Login / Register)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --gold:      #E8B400;
  --gold-dark: #C89A00;
  --navy:      #1A2391;
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; margin: 0; min-height: 100vh; display: flex; }

/* ────────────────────────────────
   LEFT PANEL (branding)
──────────────────────────────── */
.left {
  flex: 1;
  background: linear-gradient(160deg, var(--navy) 0%, #2b3fd8 55%, #1a7ab5 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; position: relative; overflow: hidden;
}
.left::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.04), transparent 60%);
}
.logo {
  width: 84px; height: 84px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy);
  font-weight: 800; margin-bottom: 22px; z-index: 1; box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.left h2 { font-family: 'Playfair Display', serif; color: white; font-size: 1.75rem; text-align: center; margin-bottom: 10px; z-index: 1; }
.left p  { color: rgba(255,255,255,.7); text-align: center; font-size: .9rem; max-width: 300px; z-index: 1; }
.pill    { background: rgba(232,180,0,.15); border: 1px solid rgba(232,180,0,.35); color: var(--gold); border-radius: 20px; padding: 5px 16px; font-size: .8rem; font-weight: 600; margin-bottom: 26px; z-index: 1; }
.demo-credentials-box {
  margin-top: 28px;
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 280px;
  width: 100%;
  z-index: 1;
}
.demo-credentials-title {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.demo-credentials-line {
  font-size: .82rem;
  color: rgba(255,255,255,.85);
}
.demo-credentials-line-gap { margin-bottom: 4px; }
.demo-credentials-label { color: var(--gold); }

/* ────────────────────────────────
   RIGHT PANEL (form)
──────────────────────────────── */
.right      { width: 460px; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 52px 48px; position: relative; }
.right.wide { width: 520px; padding: 48px 44px; overflow-y: auto; }
.auth-form-wrap { width: 100%; }
.auth-form-wrap-login { max-width: 340px; }
.auth-form-wrap-register { max-width: 400px; }

.exit-btn       { position: absolute; top: 20px; right: 20px; text-decoration: none; font-size: .82rem; color: #9ca3af; display: flex; align-items: center; gap: 4px; }
.exit-btn:hover { color: #374151; }

.form-title { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--navy); text-align: center; margin-bottom: 4px; }
.form-sub   { font-size: .84rem; color: #9ca3af; text-align: center; margin-bottom: 28px; }

.form-label { font-size: .84rem; font-weight: 500; color: #374151; margin-bottom: 3px; }
.form-control,
.form-select { border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: .9rem; padding: 10px 14px; transition: border .2s; width: 100%; }
.form-control:focus,
.form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,35,145,.1); outline: none; }

/* ────────────────────────────────
   BUTTONS
──────────────────────────────── */
.btn-main       { background: var(--gold); color: var(--navy); font-weight: 700; border: none; border-radius: 8px; padding: 11px; font-size: .95rem; width: 100%; cursor: pointer; transition: background .2s; }
.btn-main:hover { background: var(--gold-dark); }

/* ────────────────────────────────
   DIVIDER
──────────────────────────────── */
.divider        { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #d1d5db; font-size: .78rem; }
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

/* ────────────────────────────────
   LINKS & ALERTS
──────────────────────────────── */
a.lnk       { color: var(--navy); font-weight: 600; text-decoration: none; }
a.lnk:hover { text-decoration: underline; }
.auth-muted-link { font-size: .8rem; font-weight: 400; color: #6b7280; }
.auth-helper-text { font-size: .85rem; color: #6b7280; }
.auth-privacy-label { font-size: .8rem; color: #6b7280; }
.err-box { background: #fee2e2; color: #b91c1c; border: none; border-radius: 8px; padding: 10px 14px; font-size: .84rem; margin-top: 12px; display: none; }
.ok-box  { background: #dcfce7; color: #15803d; border: none; border-radius: 8px; padding: 10px 14px; font-size: .84rem; margin-top: 12px; display: none; }

.forgot-box {
  display: none;
  margin-top: 20px;
  padding: 16px;
  background: #f8f9ff;
  border-radius: 10px;
  border: 1.5px solid #e0e4ff;
}
.forgot-box-title {
  font-weight: 600;
  font-size: .87rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.btn-main-compact {
  font-size: .85rem;
  padding: 8px;
}
.reset-msg {
  display: none;
  font-size: .8rem;
  margin-top: 8px;
}

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 768px) {
  body           { flex-direction: column; }
  .left          { min-height: 220px; padding: 32px 24px; }
  .right,
  .right.wide    { width: 100%; padding: 36px 24px; }
}
