/* ============================================
   COLLEGE PORTAL — AUTH STYLES
   File: college-auth.css
   Link this in college-auth.html as:
   <link rel="stylesheet" href="college-auth.css"/>
============================================ */

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

/* ── CSS VARIABLES ── */
:root {
  --navy:        #981e1e;
  --navy2:       #0e3165;
  --gold:        #c9a84c;
  --gold2:       #f0c96e;
  --white:       #ffffff;
  --light:       #f4f7fb;
  --light:       #f4f7fb;
  --muted:       #8a95a8;
  --red:         #e03e3e;
  --green:       #1e9e6b;
  --border:      rgba(201,168,76,.22);
  --card-shadow: 0 24px 64px rgba(10,22,40,.18);
}

/* ── BODY ── */
body {
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* ── ANIMATED BACKGROUND ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.bg-orb:nth-child(1) {
  width: 600px; height: 600px;
  background: var(--gold);
  top: -150px; left: -150px;
  animation-duration: 16s;
}
.bg-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: #1e4a8a;
  bottom: -100px; right: -100px;
  animation-duration: 12s;
  animation-delay: -5s;
}
.bg-orb:nth-child(3) {
  width: 350px; height: 350px;
  background: var(--green);
  top: 40%; left: 55%;
  animation-duration: 18s;
  animation-delay: -8s;
}

@keyframes orb-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,60px) scale(1.15); }
}

/* Grid lines overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── PORTAL HEADER ── */
.portal-header {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 28px;
  animation: fadeDown .6s ease both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portal-logo {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--navy2), #1a2e50);
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 6px rgba(201,168,76,.1), 0 12px 32px rgba(0,0,0,.3);
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
}

.portal-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.3px;
}

.portal-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ── AUTH CARD ── */
.auth-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  animation: fadeUp .6s .1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ROLE TABS ── */
.role-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.role-tab {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: color .25s, background .25s;
  position: relative;
}

.role-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .3s;
}

.role-tab.active {
  color: var(--gold2);
  background: rgba(201,168,76,.07);
}

.role-tab.active::after { width: 60%; }
.role-tab i { font-size: 14px; }

/* ── PANELS ── */
.panels {
  padding: 28px 32px 32px;
  position: relative;
}

.panel {
  display: none;
  animation: panelIn .35s ease both;
}

.panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── AUTH MODE TABS ── */
.auth-mode-tabs {
  display: flex;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 2px;
}

.auth-mode-tab {
  flex: 1;
  padding: 8px 4px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px;
  transition: all .25s;
  white-space: nowrap;
}

.auth-mode-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
}

/* ── FORM SECTIONS ── */
.form-section { display: none; }

.form-section.active {
  display: block;
  animation: panelIn .3s ease both;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.form-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.form-sub span {
  color: var(--gold2);
  font-weight: 600;
}

/* ── FORM FIELDS ── */
.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.input-wrap { position: relative; }

.input-wrap i.lead-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
  transition: color .2s;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 11px 12px 11px 38px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
}

.input-wrap select option {
  background: #0a1628;
  color: #fff;
}

.input-wrap input::placeholder { color: rgba(255,255,255,.28); }

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,.07);
}

.input-wrap:focus-within i.lead-icon { color: var(--gold); }

.toggle-pw {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: color .2s;
  padding: 2px;
}

.toggle-pw:hover { color: var(--gold2); }

/* ── METHOD TOGGLE (Gmail / Phone) ── */
.method-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.method-btn {
  flex: 1;
  padding: 9px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .22s;
}

.method-btn.active {
  background: rgba(201,168,76,.12);
  border-color: var(--gold);
  color: var(--gold2);
}

.method-btn i { font-size: 13px; }

/* ── OTP BOXES ── */
.otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.otp-box {
  width: 46px; height: 52px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 9px;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  font-family: 'Playfair Display', serif;
  outline: none;
  transition: border-color .2s, background .2s, transform .15s;
}

.otp-box:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,.1);
  transform: scale(1.08);
}

/* ── SUBMIT BUTTON ── */
.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .3px;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.4);
}

.btn-submit:active { transform: translateY(0); }

/* ── GOOGLE BUTTON ── */
.btn-google {
  width: 100%;
  padding: 11px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-google:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
}

.google-icon {
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat;
  display: inline-block;
  flex-shrink: 0;
}

/* ── OR DIVIDER ── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: rgba(255,255,255,.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

/* ── OTP TIMER ── */
.otp-timer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.otp-timer span { color: var(--gold2); font-weight: 700; }

.otp-resend {
  background: none;
  border: none;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ── STEP INDICATOR ── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.step-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: all .3s;
}

.step-circle.done  { background: var(--green); border-color: var(--green); color: #fff; }
.step-circle.active{ background: var(--gold);  border-color: var(--gold);  color: var(--navy); }

.step-label { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.step-label.active { color: var(--gold2); }

.step-line { flex: 1; height: 1px; background: rgba(255,255,255,.1); margin: 0 6px; }
.step-line.done { background: var(--green); }

/* ── ALERTS ── */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.alert.success { background: rgba(30,158,107,.15); border: 1px solid rgba(30,158,107,.3); color: #4ade80; }
.alert.error   { background: rgba(224,62,62,.12);  border: 1px solid rgba(224,62,62,.3);  color: #f87171; }
.alert.info    { background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.25);color: var(--gold2); }
.alert.show    { display: flex; }

/* ── FOOTER LINKS ── */
.form-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.form-footer a { color: var(--gold2); font-weight: 600; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* ── ADMIN BADGE ── */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224,62,62,.12);
  border: 1px solid rgba(224,62,62,.25);
  color: #f87171;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .panels      { padding: 20px 18px 24px; }
  .auth-card   { border-radius: 16px; }
  .otp-box     { width: 38px; height: 46px; font-size: 18px; }
}
