/* =====================================================
   UGMSA Auth v2 — shared styles
   Used by: auth.php, complete/class.php, complete/dob.php,
            forgotPword.php
   ===================================================== */

:root{
  --ink: #17102e;
  --ink-2: #1e1240;
  --violet: #6d28d9;
  --violet-deep: #4c1d95;
  --iris: #a78bfa;
  --wash: #f6f4fb;
  --line: #ece8f6;
}

*{ margin:0; padding:0; box-sizing:border-box; }

body.auth-ink{
  font-family: 'Hanken Grotesk', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(139,92,246,.35), transparent 55%),
    radial-gradient(90% 70% at 0% 110%, rgba(109,40,217,.28), transparent 60%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink) 100%);
}

/* Slow drifting glow behind the card */
body.auth-ink::before{
  content:'';
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,.22), transparent 65%);
  top: -120px; right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift{
  from{ transform: translate(0,0) scale(1); }
  to  { transform: translate(-70px, 90px) scale(1.15); }
}
@media (prefers-reduced-motion: reduce){ body.auth-ink::before{ animation:none; } }

.font-display{ font-family: 'Bricolage Grotesque', 'Hanken Grotesk', sans-serif; }
.font-mono-id{ font-family: 'DM Mono', monospace; letter-spacing: .08em; }

/* ---------- The card ---------- */
.auth-card{
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  position: relative;
  z-index: 1;
}

/* ---------- Photo band ---------- */
.photo-band{
  position: relative;
  height: 138px;
  background:
    linear-gradient(160deg, rgba(23,16,46,.9), rgba(76,29,149,.82) 55%, rgba(109,40,217,.66)),
    url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?q=80&w=1200&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 0 24px;
}
.photo-band img{ width: 44px; height: 44px; object-fit: contain; }
.photo-band .word{
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.photo-band .tag{
  color: rgba(233,228,247,.75);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .32em;
}

/* ---------- Segmented switch ---------- */
.seg{
  position: relative;
  display: flex;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 22px 24px 0;
}
.seg button{
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #9ca3af;
  cursor: pointer;
  transition: color .3s ease;
}
.seg button.on{ color: #fff; }
.seg .thumb{
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  box-shadow: 0 8px 20px rgba(109,40,217,.35);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.seg.reg .thumb{ transform: translateX(100%); }

/* ---------- Panels ---------- */
.panel{ display: none; padding: 24px; }
.panel.act{ display: block; animation: rise .4s cubic-bezier(.22, .8, .36, 1); }
@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to  { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){ .panel.act{ animation:none; } }

.panel h2{
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}
.panel .sub{
  font-size: 12.5px;
  color: #9ca3af;
  font-weight: 600;
  margin: 3px 0 20px;
}

/* ---------- Fields ---------- */
.fld{ position: relative; margin-bottom: 13px; }
.fld > i{
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #a78bfa;
  font-size: 15px;
  pointer-events: none;
}
.fld input, .fld select{
  width: 100%;
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 16px;
  padding: 15px 16px 15px 46px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  outline: none;
  appearance: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.fld input:focus, .fld select:focus{
  border-color: var(--iris);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(167,139,250,.14);
}
.fld input::placeholder{ color: #b6b0cc; font-weight: 500; }
.fld select:invalid{ color: #b6b0cc; }
.fld .peek{
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  border: 0; background: transparent;
  width: 38px; height: 38px;
  color: #b6b0cc; cursor: pointer;
  font-size: 15px;
  border-radius: 999px;
  transition: color .2s;
}
.fld .peek:hover{ color: var(--violet); }
.fld .hint{
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #9ca3af;
  margin: 6px 4px 0;
}

/* mono student ID */
.fld input.mono{ font-family: 'DM Mono', monospace; letter-spacing: .1em; }

/* ---------- Buttons & links ---------- */
.btn-main{
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(109,40,217,.35);
  transition: transform .15s ease, box-shadow .2s ease;
  margin-top: 6px;
}
.btn-main:active{ transform: scale(.98); }

.aux-link{
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
  margin: -4px 2px 14px;
}

/* ---------- Step dots (completion flow) ---------- */
.steps{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px 0 2px;
}
.steps .dot{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition: all .3s;
}
.steps .dot.on{
  width: 26px;
  background: linear-gradient(90deg, #d8b95c, #f6e7a8, #d8b95c);
}
.steps .lbl{
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #9ca3af;
  margin-left: 6px;
}

/* ---------- Under-card footer ---------- */
.under{
  margin-top: 22px;
  text-align: center;
  color: rgba(139,128,179,.85);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .28em;
  z-index: 1;
}
