:root {
  --green: #1FAA59;
  --green-deep: #127A3E;
  --green-tint: #E9F8EF;
  --red: #F43F54;
  --red-deep: #D72E43;
  --red-tint: #FEEDEF;
  --ink: #1A2420;
  --muted: #5C6B63;
  --line: #E4EAE6;
  --white: #FFFFFF;
  --head: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
}
* , *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  color: var(--ink);
  background: #F4F8F5;
  background-image: url("../img/edu-bg.svg");
  background-size: 440px 440px;
}
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; }
a { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Auth split panel ---------- */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 2vw, 2.5rem);
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-shell {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(18, 122, 62, 0.18);
}
.auth-side {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(155deg, #16923F 0%, var(--green-deep) 55%, #0B5C2C 100%);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
}
.auth-side .glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%); top: -120px; right: -120px; }
.side-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.16); border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 700; font-size: 0.82rem; margin-bottom: 1.75rem; }
.side-pill svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; }
.auth-side h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.05; margin-bottom: 0.6rem; }
.auth-side .lead { font-size: 1.02rem; opacity: 0.9; max-width: 22rem; }
.points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.points li { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 600; font-size: 0.9rem; }
.points .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; margin-top: 1px; }
.points .tick svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { margin-top: auto; padding-top: 2rem; }
.slashes { display: flex; gap: 6px; margin-bottom: 0.7rem; }
.slashes span { width: 34px; height: 5px; border-radius: 3px; transform: skewX(-24deg); }
.slashes .g { background: #fff; } .slashes .r { background: var(--red); }
.side-foot p { font-weight: 700; font-size: 0.92rem; opacity: 0.9; margin: 0; }

.auth-main { padding: clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.auth-top img { height: 48px; width: auto; }
.switch-link { border: 2px solid var(--line); border-radius: 999px; padding: 0.55rem 1.1rem; font-weight: 700; font-size: 0.88rem; text-decoration: none; color: var(--ink); transition: border-color 0.2s ease, background 0.2s ease; }
.switch-link:hover { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); }
.switch-link b { color: var(--green-deep); }
.auth-card { width: 100%; max-width: 420px; margin: auto 0; }
.eyebrow { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.auth-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); font-weight: 800; margin: 0.2rem 0 1.4rem; }

.g-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem; border: 2px solid var(--line); background: var(--white); border-radius: 14px; padding: 0.85rem; font: 700 0.98rem var(--body); color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease; }
.g-btn:hover { border-color: #C9D3CD; background: #FAFCFB; transform: translateY(-1px); }
.g-btn img { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 0.8rem; margin: 1.25rem 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 0.4rem; }
.field label .opt { font-weight: 500; color: var(--muted); }
.ip { position: relative; }
.ip input, .ip select { width: 100%; height: 52px; padding: 0 1rem; border: 2px solid var(--line); border-radius: 14px; background: #F7FAF8; color: var(--ink); font: 500 1rem var(--body); transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.ip input:focus, .ip select:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px var(--green-tint); }
.ip.has-eye input { padding-right: 3rem; }
.ip .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.ip .eye svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.foot-link { display: block; text-align: right; margin: -0.4rem 0 1rem; font-weight: 700; font-size: 0.85rem; color: var(--green-deep); text-decoration: none; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin: 0.2rem 0 1.2rem; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.consent a { color: var(--green-deep); font-weight: 700; }
.btn-main { width: 100%; border: 0; border-radius: 14px; padding: 1rem; background: var(--green); color: var(--white); font: 800 1.02rem var(--body); cursor: pointer; box-shadow: 0 10px 24px rgba(31,170,89,0.28); transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease; }
.btn-main:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-main:disabled { opacity: 0.6; cursor: wait; transform: none; }
.flash { border-radius: 14px; padding: 0.8rem 1rem; font-weight: 700; font-size: 0.92rem; margin-bottom: 1.1rem; background: var(--red-tint); color: var(--red-deep); }
.flash.ok { background: var(--green-tint); color: var(--green-deep); }
.hint { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 1.1rem; }
.hint a { color: var(--green-deep); font-weight: 700; text-decoration: none; }
.copy { margin-top: 1.5rem; font-size: 0.8rem; color: var(--muted); }
.cp-foot { display: none; }

/* ---------- Dashboard ---------- */
.dash-top { background: var(--white); border-bottom: 1px solid var(--line); }
.dash-top .wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dash-top img { height: 46px; }
.dash-user { display: flex; align-items: center; gap: 0.8rem; }
.dash-user .who { text-align: right; }
.dash-user .who b { display: block; font-size: 0.95rem; }
.dash-user .who small { color: var(--muted); text-transform: capitalize; }
.dash-user .av { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 800 1.1rem var(--head); }
.signout { border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 0.5rem 1rem; font: 700 0.85rem var(--body); color: var(--ink); text-decoration: none; }
.signout:hover { border-color: var(--red); color: var(--red-deep); }
.dash-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.dash-wrap h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.dash-wrap .sub { color: var(--muted); margin-top: 0.4rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; text-decoration: none; color: var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.tile:hover { transform: translateY(-4px); border-color: #BDE9CF; box-shadow: 0 16px 36px rgba(31,170,89,0.12); }
.tile .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--green-tint); display: grid; place-items: center; margin-bottom: 1rem; }
.tile .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--green-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.tile p { color: var(--muted); font-size: 0.92rem; margin: 0; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 460px; }
  .auth-side { display: none; }
  .auth-body { align-items: flex-start; }
  .auth-main { padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .auth-card { margin: 0 auto; }
  body { background-size: 340px 340px; }
}
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }