/* ============================================================
   SCP Alumni Portal – style.css
   Theme: Coal Black & Antique Gold
   ============================================================ */

:root {
  --coal:    #1a1a2e;
  --coal2:   #16213e;
  --coal3:   #0f3460;
  --gold:    #c9a84c;
  --gold-lt: #e8c97e;
  --gold-dk: #a07830;
  --cream:   #faf7f0;
  --muted:   #6c7a89;
  --white:   #ffffff;
  --red:     #dc3545;
  --green:   #198754;
  --r:       10px;
  --sh:      0 4px 24px rgba(0,0,0,.09);
  --font-h:  'Playfair Display', serif;
  --font-b:  'DM Sans', sans-serif;
}

*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:var(--font-b); background:var(--cream); color:var(--coal); min-height:100vh; display:flex; flex-direction:column; }

/* ── Navbar ─────────────────────────────────────────────── */
.scp-nav { background:var(--coal); border-bottom:3px solid var(--gold); padding:.7rem 0; position:sticky; top:0; z-index:1030; }
.nav-badge { width:46px; height:46px; background:var(--gold); color:var(--coal); border-radius:8px; display:flex; align-items:center; justify-content:center; font-family:var(--font-h); font-size:1rem; font-weight:700; letter-spacing:1px; flex-shrink:0; }
.nav-title { color:var(--white); font-weight:600; font-size:.95rem; line-height:1.2; }
.nav-sub   { color:var(--gold-lt); font-size:.7rem; letter-spacing:.4px; }
.scp-nav .nav-link { color:rgba(255,255,255,.8)!important; font-size:.88rem; padding:.4rem .7rem!important; border-radius:6px; transition:.2s; }
.scp-nav .nav-link:hover { color:var(--gold-lt)!important; background:rgba(255,255,255,.07); }
.btn-gold         { background:var(--gold); color:var(--coal); font-weight:600; border:none; border-radius:6px; padding:.38rem .9rem; font-size:.88rem; transition:.2s; }
.btn-gold:hover   { background:var(--gold-dk); color:var(--white); }
.btn-outline-gold { border:1.5px solid var(--gold); color:var(--gold); background:transparent; font-weight:600; border-radius:6px; padding:.38rem .9rem; font-size:.88rem; transition:.2s; }
.btn-outline-gold:hover { background:var(--gold); color:var(--coal); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { background:linear-gradient(135deg,var(--coal) 0%,var(--coal3) 100%); color:var(--white); padding:5rem 0 4rem; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30L30 0L60 30L30 60Z' fill='none' stroke='rgba(201,168,76,.06)' stroke-width='1'/%3E%3C/svg%3E") repeat; }
.hero h1 { font-family:var(--font-h); font-size:clamp(1.8rem,5vw,3.2rem); font-weight:700; line-height:1.2; position:relative; }
.hero p  { color:rgba(255,255,255,.72); font-size:1.05rem; max-width:540px; position:relative; }
.hero-cta { display:flex; gap:1rem; flex-wrap:wrap; margin-top:1.8rem; position:relative; }
.stat-card { background:rgba(255,255,255,.06); border:1px solid rgba(201,168,76,.2); border-radius:var(--r); padding:1.2rem 1rem; text-align:center; }
.stat-card strong { display:block; font-size:1.9rem; font-family:var(--font-h); color:var(--gold); font-weight:700; }
.stat-card span   { font-size:.72rem; color:rgba(255,255,255,.55); text-transform:uppercase; letter-spacing:.5px; }

/* ── Dash Stat Cards ────────────────────────────────────── */
.dstat { background:linear-gradient(135deg,var(--coal),var(--coal3)); color:var(--white); border-radius:var(--r); padding:1.3rem 1.5rem; position:relative; overflow:hidden; }
.dstat .num   { font-size:2rem; font-family:var(--font-h); color:var(--gold); font-weight:700; line-height:1; }
.dstat .lbl   { font-size:.75rem; color:rgba(255,255,255,.55); text-transform:uppercase; letter-spacing:.5px; margin-top:.3rem; }
.dstat .icon  { position:absolute; right:1rem; top:50%; transform:translateY(-50%); font-size:2.8rem; color:rgba(255,255,255,.06); }

/* ── Card / Section ─────────────────────────────────────── */
.card { border:1px solid rgba(0,0,0,.08); border-radius:var(--r); box-shadow:var(--sh); }
.card-head { background:linear-gradient(90deg,var(--coal),var(--coal3)); color:var(--white); border-radius:var(--r) var(--r) 0 0!important; padding:1rem 1.4rem; font-family:var(--font-h); font-size:1.05rem; border-bottom:3px solid var(--gold); }
.card-head i { color:var(--gold); }
.sec { background:var(--white); border-radius:var(--r); padding:1.6rem; margin-bottom:1.4rem; border:1px solid rgba(0,0,0,.06); box-shadow:0 2px 10px rgba(0,0,0,.04); }
.sec-title { font-family:var(--font-h); font-size:1.1rem; color:var(--coal3); margin-bottom:1.1rem; padding-bottom:.5rem; border-bottom:2px solid var(--gold); display:flex; align-items:center; gap:.5rem; }
.sec-title i { color:var(--gold); }

/* ── Form controls ──────────────────────────────────────── */
.form-label { font-weight:500; font-size:.87rem; color:var(--coal); margin-bottom:.3rem; }
.req { color:var(--red); margin-left:2px; }
.form-control,.form-select { border:1.5px solid #d5dae2; border-radius:7px; font-size:.91rem; padding:.52rem .82rem; transition:.2s; font-family:var(--font-b); }
.form-control:focus,.form-select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,168,76,.14); outline:none; }
.form-control.is-invalid,.form-select.is-invalid { border-color:var(--red); }
.invalid-feedback { font-size:.78rem; }
.btn-coal { background:var(--coal3); color:var(--white); border:none; padding:.62rem 1.8rem; border-radius:8px; font-weight:600; font-size:.92rem; transition:.22s; letter-spacing:.2px; }
.btn-coal:hover { background:var(--coal); color:var(--gold-lt); }

/* ── Auth pages ─────────────────────────────────────────── */
.auth-page { min-height:calc(100vh - 80px); display:flex; align-items:center; justify-content:center; padding:2rem 1rem; background:linear-gradient(150deg,var(--coal) 0%,var(--coal3) 55%,var(--cream) 100%); }
.auth-box { width:100%; max-width:460px; background:var(--white); border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.25); overflow:hidden; }
.auth-head { background:linear-gradient(135deg,var(--coal),var(--coal3)); padding:1.8rem 2rem 1.5rem; text-align:center; border-bottom:3px solid var(--gold); }
.auth-head .logo { font-family:var(--font-h); color:var(--gold); font-size:2rem; font-weight:700; }
.auth-head .sub  { color:rgba(255,255,255,.65); font-size:.82rem; margin:.3rem 0 0; }
.auth-body { padding:1.8rem 2rem; }
.auth-link { font-size:.85rem; text-align:center; margin-top:1rem; }
.auth-link a { color:var(--coal3); font-weight:600; text-decoration:none; }
.auth-link a:hover { color:var(--gold-dk); }

/* ── Multi-step stepper ─────────────────────────────────── */
.stepper { display:flex; margin-bottom:1.8rem; border-radius:var(--r); overflow:hidden; }
.step-item { flex:1; text-align:center; padding:.55rem .4rem; font-size:.76rem; font-weight:600; color:var(--muted); background:#e8eaf0; border-right:1px solid rgba(0,0,0,.07); transition:.25s; }
.step-item:last-child { border-right:none; }
.step-item.active { background:var(--coal3); color:var(--white); }
.step-item.done   { background:var(--gold); color:var(--coal); }
.step-item .sn { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:rgba(255,255,255,.22); font-size:.68rem; margin-right:4px; }

/* ── OTP boxes ──────────────────────────────────────────── */
.otp-row { display:flex; gap:10px; justify-content:center; margin:18px 0; }
.otp-box { width:52px; height:58px; font-size:1.75rem; font-weight:700; text-align:center; border:2px solid #d0d5dd; border-radius:10px; font-family:var(--font-h); color:var(--coal); transition:.2s; background:#fafafa; }
.otp-box:focus { border-color:var(--gold); box-shadow:0 0 0 4px rgba(201,168,76,.16); outline:none; background:var(--white); }
.otp-box.err { border-color:var(--red); }

/* OTP registration steps indicator */
.reg-steps { display:flex; margin-bottom:1.4rem; }
.reg-step  { flex:1; text-align:center; position:relative; }
.reg-step::before { content:attr(data-n); display:block; width:30px; height:30px; border-radius:50%; background:#e0e0e0; color:#999; line-height:30px; font-weight:700; font-size:.82rem; margin:0 auto 5px; transition:.3s; }
.reg-step::after  { content:''; position:absolute; top:15px; left:50%; width:100%; height:2px; background:#e0e0e0; z-index:-1; }
.reg-step:last-child::after { display:none; }
.reg-step.done::before   { background:var(--gold); color:var(--coal); content:'✓'; }
.reg-step.active::before { background:var(--coal3); color:var(--white); }
.reg-step .lbl { font-size:.73rem; color:var(--muted); }
.reg-step.active .lbl { color:var(--coal3); font-weight:600; }

/* OTP countdown */
.otp-timer { font-size:.82rem; color:var(--muted); text-align:center; }
.otp-timer.urgent { color:var(--red); font-weight:600; }

/* ── Photo uploader ─────────────────────────────────────── */
.photo-wrap { position:relative; display:inline-block; cursor:pointer; }
.photo-circle { width:110px; height:110px; border-radius:50%; border:3px solid var(--gold); overflow:hidden; background:var(--cream); display:flex; align-items:center; justify-content:center; font-size:2.4rem; font-family:var(--font-h); color:var(--coal3); font-weight:700; }
.photo-circle img { width:100%; height:100%; object-fit:cover; }
.photo-cam { position:absolute; bottom:4px; right:4px; width:28px; height:28px; border-radius:50%; background:var(--gold); color:var(--coal); border:2px solid var(--white); display:flex; align-items:center; justify-content:center; font-size:.7rem; box-shadow:0 2px 6px rgba(0,0,0,.2); transition:.2s; }
.photo-cam:hover { background:var(--gold-dk); color:var(--white); transform:scale(1.1); }
.photo-hint { font-size:.75rem; color:var(--muted); margin-top:.4rem; }

/* ── Profile view ───────────────────────────────────────── */
.profile-hero { background:linear-gradient(135deg,var(--coal),var(--coal3)); color:var(--white); border-radius:var(--r) var(--r) 0 0; padding:1.8rem 2rem; }
.info-row { display:flex; justify-content:space-between; padding:.5rem 0; border-bottom:1px solid rgba(0,0,0,.06); font-size:.88rem; }
.info-row:last-child { border-bottom:none; }
.info-lbl { color:var(--muted); min-width:160px; font-size:.8rem; }

/* ── Table ──────────────────────────────────────────────── */
.tbl-scp thead th { background:var(--coal); color:var(--gold-lt); font-size:.79rem; text-transform:uppercase; letter-spacing:.4px; border:none; padding:.8rem 1rem; white-space:nowrap; }
.tbl-scp tbody tr:hover { background:rgba(201,168,76,.05); }
.tbl-scp td { vertical-align:middle; font-size:.88rem; padding:.65rem 1rem; }

/* ── Badges ─────────────────────────────────────────────── */
.bbranch    { background:rgba(15,52,96,.09); color:var(--coal3); font-size:.72rem; padding:.3em .7em; border-radius:20px; font-weight:500; white-space:nowrap; }
.bs-study   { background:#e8f4fd; color:#0c6ebd; font-size:.74rem; padding:.28em .65em; border-radius:20px; font-weight:500; }
.bs-employ  { background:#e6f9ee; color:#198754; font-size:.74rem; padding:.28em .65em; border-radius:20px; font-weight:500; }
.bs-self    { background:#fff3cd; color:#856404; font-size:.74rem; padding:.28em .65em; border-radius:20px; font-weight:500; }
.bs-seek    { background:#fde8e8; color:#dc3545; font-size:.74rem; padding:.28em .65em; border-radius:20px; font-weight:500; }
.verified   { background:#e6f9ee; color:#198754; border:1px solid #b8edcc; font-size:.75rem; padding:.25em .75em; border-radius:20px; font-weight:600; display:inline-flex; align-items:center; gap:.3rem; }

/* ── Upload zone (bulk) ─────────────────────────────────── */
.drop-zone { border:2.5px dashed var(--gold); border-radius:var(--r); padding:2.5rem 1.5rem; text-align:center; background:rgba(201,168,76,.03); cursor:pointer; transition:.2s; }
.drop-zone:hover,.drop-zone.over { background:rgba(201,168,76,.09); }
.drop-zone i { font-size:2.8rem; color:var(--gold); margin-bottom:.8rem; display:block; }

/* ── Footer ─────────────────────────────────────────────── */
.scp-footer { background:var(--coal); color:rgba(255,255,255,.55); padding:1.4rem 0; font-size:.82rem; border-top:3px solid var(--gold); margin-top:auto; }
.footer-brand { font-family:var(--font-h); color:var(--gold-lt); font-size:1rem; margin-bottom:.25rem; }
.footer-addr  { font-size:.78rem; }
.footer-link  { color:var(--gold-lt); text-decoration:none; font-size:.8rem; }
.footer-link:hover { color:var(--white); }
.footer-copy  { font-size:.74rem; color:rgba(255,255,255,.35); margin-top:.3rem; }

/* ── Utilities ──────────────────────────────────────────── */
.pg-title { font-family:var(--font-h); color:var(--coal); font-size:1.75rem; margin-bottom:.15rem; }
.pg-sub   { color:var(--muted); font-size:.88rem; margin-bottom:1.4rem; }
.pw-eye   { cursor:pointer; border:1px solid #d5dae2; border-left:none; border-radius:0 7px 7px 0; padding:.52rem .8rem; background:var(--white); color:var(--muted); transition:.2s; }
.pw-eye:hover { color:var(--coal); }

@media(max-width:768px){
  .hero { padding:2.5rem 0 2rem; }
  .sec { padding:1.1rem; }
  .auth-body { padding:1.4rem 1.2rem; }
  .stepper { flex-wrap:wrap; }
  .step-item { flex:0 0 50%; border-right:none; border-bottom:1px solid rgba(0,0,0,.07); }
  .otp-box { width:44px; height:52px; font-size:1.5rem; }
  .tbl-scp thead { display:none; }
  .tbl-scp tbody tr { display:block; border:1px solid #eee; border-radius:8px; margin-bottom:.7rem; }
  .tbl-scp td { display:flex; justify-content:space-between; border:none; border-bottom:1px solid #f5f5f5; }
  .tbl-scp td::before { content:attr(data-label); font-weight:600; font-size:.76rem; color:var(--muted); text-transform:uppercase; }
}
