/* Área de Alunos — paleta: Preto 0B0D0A · Floresta 14452F · Lima C2F200 · Laranja F25C05 · Creme F3EFE6 */
:root {
  --preto: #0B0D0A; --floresta: #14452F; --lima: #C2F200; --laranja: #F25C05; --creme: #F3EFE6;
  --bg: var(--creme); --fg: var(--preto);
  --muted: rgba(11,13,10,.62); --line: rgba(11,13,10,.16); --input: rgba(11,13,10,.04); --lock: rgba(11,13,10,.30);
  --card: var(--floresta); --card-fg: var(--creme); --card-muted: rgba(243,239,230,.72);
  --btn: var(--floresta); --btn-fg: var(--creme);
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: var(--preto); --fg: var(--creme);
  --muted: rgba(243,239,230,.66); --line: rgba(243,239,230,.18); --input: rgba(243,239,230,.06); --lock: rgba(243,239,230,.28);
  --btn: var(--lima); --btn-fg: var(--preto);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
.mark { background: var(--lima); color: var(--preto); padding: 0 .16em; border-radius: 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 2px; }
:root:not([data-theme="dark"]) :focus-visible { outline-color: var(--floresta); }

/* marca */
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--lima); display: inline-flex; align-items: center; justify-content: center; }
.logo-mark i { width: 14px; height: 14px; border-radius: 4px; background: var(--preto); display: block; }
.logo-name { font-family: var(--display); font-weight: 700; font-size: 20px; }

/* topo */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 48px; border-bottom: 1px solid var(--line); }
.topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; min-height: 44px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--floresta); color: var(--creme); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.link-btn { background: none; border: 0; color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 8px; }

main.wrap { padding: 0 48px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-size: 15px; font-weight: 600; margin-top: 24px; }
.footer { margin-top: 56px; padding: 28px 48px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer a { color: var(--fg); font-weight: 600; }

/* hub */
.hello { margin-top: 56px; font-size: 15px; color: var(--muted); }
.hub-title { font-size: clamp(42px, 6vw, 64px); font-weight: 800; line-height: 1.04; margin-top: 8px; }
.hub-sub { margin: 18px 0 0; max-width: 600px; font-size: 18px; color: var(--muted); }
.notice { margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: var(--laranja); color: var(--preto); font-weight: 600; max-width: 640px; }
.featured { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 32px; margin-top: 32px; text-decoration: none; background: var(--card); color: var(--card-fg); border-radius: 28px; padding: 40px; }
.featured .body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.featured h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.1; }
.featured p { margin: 0; max-width: 560px; font-size: 17px; color: var(--card-muted); }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 8px; }
.stats b { display: block; font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; color: var(--lima); }
.stats span { font-size: 14px; color: var(--card-muted); }
.open { align-self: flex-end; display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--lima); color: var(--preto); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.open .round { width: 56px; height: 56px; }
.grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.card { flex: 1 1 300px; min-width: 0; min-height: 320px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; border-radius: 24px; padding: 28px; background: var(--card); color: var(--card-fg); }
.card h3 { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 15px; color: var(--card-muted); }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .push { margin-top: auto; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; background: var(--lima); color: var(--preto); display: inline-flex; align-items: center; justify-content: center; }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(243,239,230,.4); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chip.lime { background: var(--lima); color: var(--preto); border-color: var(--lima); }
.chip.hot { background: var(--laranja); color: var(--preto); border-color: var(--laranja); }
.card.locked { background: transparent; color: var(--fg); border: 1.5px dashed var(--lock); }
.card.locked p { color: var(--muted); }
.card.locked .icon-box { background: transparent; border: 1.5px solid var(--lock); color: var(--muted); }
.card.locked .round { background: transparent; color: var(--fg); border: 1.5px solid var(--lock); }
.card.locked .more { font-size: 15px; font-weight: 600; }
.card:hover, .featured:hover { transform: translateY(-2px); transition: transform .15s; }
@media (prefers-reduced-motion: reduce) { .card:hover, .featured:hover { transform: none; transition: none; } }

/* login */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-panel { flex: 1 1 520px; min-width: 0; background: var(--floresta); color: var(--creme); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.login-panel .logo-mark { width: 44px; height: 44px; border-radius: 12px; }
.login-panel .logo-mark i { width: 17px; height: 17px; border-radius: 5px; }
.login-panel h1 { font-size: clamp(48px, 6.4vw, 84px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
.login-panel .dot { display: block; margin-top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--laranja); }
.login-panel small { font-size: 14px; color: var(--card-muted); }
.login-form { flex: 1 1 420px; min-width: 0; padding: 56px; display: flex; align-items: center; justify-content: center; }
.form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.form h2 { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.form p { margin: 12px 0 0; color: var(--muted); }
.field label, .field .lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .lblrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field .lblrow label { margin: 0; }
.field .lblrow a, .field .lblrow button { font-size: 14px; font-weight: 600; color: var(--fg); background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-decoration: underline; }
.input { width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--input); color: var(--fg); font: inherit; font-size: 16px; }
.input:focus { outline: none; border-color: var(--fg); }
.pw { position: relative; }
.pw .input { padding-right: 56px; }
.pw button { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn { height: 56px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--btn); color: var(--btn-fg); font: inherit; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.btn[disabled] { opacity: .6; cursor: progress; }
.msg { min-height: 0; border-radius: 12px; padding: 0; font-size: 14px; font-weight: 600; }
.msg.err { padding: 12px 14px; background: var(--laranja); color: var(--preto); }
.msg.ok { padding: 12px 14px; background: var(--lima); color: var(--preto); }
.help { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.help a, .help button { color: var(--fg); font-weight: 600; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* conta */
.account-title { margin-top: 12px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.08; }
.account { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; margin-top: 28px; }
.account .info { flex: 1 1 320px; min-width: 0; background: var(--card); color: var(--card-fg); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.account .info .mail { font-family: var(--display); font-weight: 700; font-size: 22px; overflow-wrap: anywhere; }
.account .info small { color: var(--card-muted); font-size: 14px; }
.account .info button { margin-top: auto; padding-top: 24px; align-self: flex-start; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: underline; min-height: 44px; }
.account .pass { flex: 2 1 420px; min-width: 0; border: 1.5px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.account .pass h2 { font-size: 22px; font-weight: 700; }

@media (max-width: 720px) {
  .topbar { padding: 14px 20px; flex-wrap: nowrap; gap: 8px; }
  .topbar-right { flex-wrap: nowrap; gap: 6px; }
  .logo { gap: 10px; }
  .logo-name { font-size: 16px; white-space: nowrap; }
  .pill .addr { display: none; }
  .pill { padding: 6px; }
  main.wrap { padding: 0 20px; }
  .hello { margin-top: 28px; }
  .hub-title { font-size: 42px; }
  .featured { padding: 24px; border-radius: 24px; gap: 20px; }
  .stats { gap: 28px; } .stats b { font-size: 38px; }
  .card { min-height: 0; padding: 22px; }
  .footer { padding: 24px 20px 32px; flex-direction: column; margin-top: 40px; }
  .login-panel { padding: 28px 24px; gap: 28px; flex-basis: auto; }
  .login-form { padding: 32px 20px 48px; }
  .account .pass, .account .info { padding: 22px; }
}
