/* Shared styles for eduweb's account pages. The landing page carries its own copy of the tokens. */
:root {
  color-scheme: light;
  --ink: #10163a; --ink-soft: #4a5072; --muted: #6b7194;
  --paper: #fbf8f3; --card: #fff; --line: #e6e1d8;
  --blue: #2546f0; --blue-d: #1a33c2; --blue-l: #e9edff;
  --sun: #ffc93c; --coral: #ff6b4a; --mint: #12b886; --mint-l: #e3f8f0;
  --display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 0 rgba(16,22,58,.04), 0 12px 32px -14px rgba(16,22,58,.22);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.top { background: #fff; box-shadow: 0 4px 0 0 transparent; border-bottom: 5px solid; border-image: linear-gradient(90deg, #2f4bff, #7c3aed, #ff3d8b, #ff8a1f) 1; }
.top .in { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.logo b { background: linear-gradient(120deg, #2f4bff, #7c3aed 50%, #ff3d8b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--muted); font-size: .93rem; min-width: 0; }
.top .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 1100px; margin: 0 auto; padding: 36px 20px 80px; }
.narrow { max-width: 460px; margin: 0 auto; }
.panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.6rem; margin-bottom: 6px; }
.panel > p.sub { color: var(--ink-soft); margin: 0 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 800 1rem/1 var(--body); padding: 14px 22px; border-radius: 999px; white-space: nowrap; transition: transform .15s, background .15s; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-d); }
.btn-blue:hover { background: #3355ff; }
.btn-blue:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--blue-d); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { padding: 9px 14px; font-size: .9rem; }
.btn-wide { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: underline; }

label { display: block; font-weight: 800; font-size: .93rem; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.field small { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; font-size: .85rem; }
input[type=email], input[type=password], input[type=text], textarea {
  width: 100%; font: 600 1rem var(--body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
.code-input { text-transform: uppercase; letter-spacing: .14em; font-weight: 800 !important; text-align: center; }

.msg { border-radius: 14px; padding: 12px 16px; font-weight: 700; margin: 0 0 18px; }
.msg.err { background: #ffe9e4; color: #a12d12; }
.msg.ok { background: var(--mint-l); color: #0b6b4e; }
.msg.info { background: #fff7dc; color: #6a5300; }

.tabs { display: flex; background: #f4f2ee; border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: none; font: 800 .95rem var(--body); color: var(--ink-soft); padding: 10px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(16,22,58,.12); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 0; min-width: 120px; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 12px; font: 800 .95rem/1.25 var(--body); color: var(--ink); cursor: pointer; text-align: left; }
.seg button small { display: block; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-l); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; font-size: .85rem; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }

.launcher { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.launcher a { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 18px 12px 16px; text-decoration: none; color: var(--ink); text-align: center; display: grid; gap: 8px; justify-items: center; transition: transform .15s; }
.launcher a:hover { transform: translateY(-3px); }
.launcher .em { font-size: 2.1rem; line-height: 1; }
.launcher b { font-size: .95rem; line-height: 1.2; }
.launcher.locked a { opacity: .55; }

.planbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.planbar h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.pill { display: inline-block; font-size: .78rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--mint-l); color: #0b7a59; vertical-align: middle; }
.pill.warn { background: #fff1d6; color: #8a5a00; }
.school-code { font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: .12em; background: #fff7dc; border: 2px dashed #e8c75a; border-radius: 16px; padding: 8px 18px; display: inline-block; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.muted { color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  main { padding: 24px 16px 64px; }
  .top .in { padding: 0 16px; }
  .panel { padding: 22px 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .top .who span { display: none; }
}
