/* Hercor College — login page */
:root {
  --teal-deep: #0b4a50;
  --teal: #0f6b73;
  --teal-hover: #0c5a61;
  --gold: #f2c230;
  --ink: #12343b;
  --muted: #6b8a90;
  --line: #d6e4e7;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  background: var(--teal-deep);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Hero layout ───────────────────────────────────────── */
.login-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px) minmax(0, .55fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 4vw, 56px) clamp(24px, 5.5vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(6, 52, 57, .94) 0%, rgba(9, 72, 78, .80) 38%, rgba(12, 92, 99, .55) 68%, rgba(8, 64, 70, .78) 100%),
    url("img/background.webp") center / cover no-repeat;
}
.hero-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: min(48vw, 720px);
  height: min(30vh, 260px);
  pointer-events: none;
}
.wave-teal { fill: rgba(7, 56, 61, .92); }
.wave-gold { fill: var(--gold); }
.wave-gold-thin { fill: none; stroke: var(--gold); stroke-width: 3; opacity: .85; }

/* ── Brand (left) ──────────────────────────────────────── */
.hero-brand { max-width: 620px; }
.brand-lockup { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.college-logo {
  width: clamp(88px, 9vw, 132px);
  height: clamp(88px, 9vw, 132px);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
}
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-hercor {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.4vw, 64px);
  letter-spacing: .01em;
}
.brand-college {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 300;
  font-size: clamp(34px, 3.9vw, 56px);
  letter-spacing: .02em;
  margin-top: 2px;
}
.brand-place {
  margin-top: 12px;
  font-size: clamp(13px, 1.2vw, 18px);
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .88);
}
.gold-rule {
  display: block;
  width: 72px;
  height: 5px;
  margin: clamp(26px, 4vh, 44px) 0 clamp(18px, 2.6vh, 26px);
  border-radius: 99px;
  background: var(--gold);
}
.hero-brand h1 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .2);
}
.tagline {
  margin: 20px 0 0;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
}

/* ── Login card (center) ───────────────────────────────── */
.login-card {
  width: 100%;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 20, 24, .35), 0 2px 8px rgba(0, 20, 24, .12);
}
.login-card h2 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--teal-deep);
}
.card-sub { margin: 6px 0 24px; font-size: 13.5px; color: var(--muted); }
.mobile-brand { display: none; }

.alert {
  margin: -8px 0 18px;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid #f3c2b8;
  background: #fff1ee;
  color: #a33a26;
  font-size: 13px;
  line-height: 1.45;
}

.field {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 48px;
  padding: 0 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 107, 115, .14); }
.field svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #7f9ba1; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.field input::placeholder { color: #8ea6ab; }
.show-password { display: grid; place-items: center; padding: 4px; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.show-password:hover svg, .show-password.on svg { stroke: var(--teal); }

.form-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 22px; font-size: 13px; }
.remember { display: flex; align-items: center; gap: 8px; color: var(--ink); cursor: pointer; }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
.forgot-link { color: var(--teal); font-weight: 600; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.login-button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 107, 115, .28);
  transition: background .18s, transform .18s;
}
.login-button:hover { background: var(--teal-hover); transform: translateY(-1px); }
.login-button:active { transform: none; }
.login-button:focus-visible, .forgot-link:focus-visible, .show-password:focus-visible { outline: 3px solid rgba(242, 194, 48, .7); outline-offset: 2px; }

.account-help { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #e6eff1; text-align: center; font-size: 13px; color: var(--muted); }
.account-help a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.account-help a:hover { text-decoration: underline; }

/* ── Side motto (right) ────────────────────────────────── */
.hero-side { justify-self: end; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.side-name { font-size: 13px; font-weight: 600; letter-spacing: .5em; color: rgba(255, 255, 255, .92); }
.side-rule { width: 36px; height: 2px; background: var(--gold); }
.side-motto { font-size: 13px; font-weight: 600; letter-spacing: .5em; line-height: 2; color: var(--gold); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1180px) {
  .login-hero { grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); }
  .hero-side { display: none; }
}

@media (max-width: 860px) {
  .login-hero {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 22px;
    padding: 28px 16px 40px;
  }
  .hero-brand { text-align: center; max-width: 440px; }
  .brand-lockup { justify-content: center; }
  .gold-rule { margin: 18px auto 14px; }
  .hero-brand h1 { font-size: 22px; }
  .tagline { display: none; }
  .login-card { max-width: 440px; }
  .hero-wave { width: 90vw; height: 18vh; }
}

@media (max-width: 480px) {
  .hero-brand { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: Poppins, Inter, sans-serif; font-weight: 700; font-size: 15px; color: var(--teal-deep); letter-spacing: .04em; }
  .mobile-brand img { width: 42px; height: 42px; object-fit: contain; }
  .login-card { padding: 24px 20px; }
}

.alert-ok { margin: 0 0 18px; border-color: #b9dfc6; background: #eefaf2; color: #1f6b3a; }
.account-help a { color: var(--teal); font-weight: 600; text-decoration: none; }
.account-help a:hover { text-decoration: underline; }
