:root {
  --ink: #142536;
  --muted: #536579;
  --blue: #315cde;
  --panel: #eef2ff;
  --gold: #ffd45c;
  --line: #d9dfea;
  --bg: #f7f8f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--blue);
  font-weight: 650;
}
.auth-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: minmax(400px, 630px) minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
}
.auth-card {
  background: #fff;
  border-radius: 28px;
  padding: 48px 64px;
  box-shadow: 0 12px 40px #14253610;
  align-self: center;
}
.brand {
  display: inline-block;
  margin-bottom: 28px;
}
.brand img {
  width: 205px;
  height: auto;
  display: block;
}
.auth-card h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.auth-card .lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}
.google {
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  background: #fff;
}
.google:before {
  content: "G";
  position: static;
  margin: 0;
  font-weight: 800;
  font-size: 25px;
  color: #4285f4;
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  margin: 26px 0;
  font-size: 14px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.field {
  display: block;
  margin: 0 0 18px;
  font-weight: 650;
}
.field > span {
  display: block;
  margin: 0 0 8px;
}
.input-wrap {
  position: relative;
}
.field input {
  display: block;
  width: 100%;
  height: 54px;
  border: 1px solid #8392a3;
  border-radius: 12px;
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus {
  outline: 3px solid #dbe5ff;
  border-color: var(--blue);
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 6px;
  height: 42px;
  min-width: 44px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}
.field input[type="password"] {
  padding-right: 70px;
}
.forgot {
  display: block;
  text-align: right;
  margin: -4px 0 22px;
}
.primary {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.primary:hover {
  background: #244bc0;
}
.primary span {
  margin-left: 20px;
}
.invite-line {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 28px;
  color: var(--muted);
}
.privacy {
  font-size: 13px;
  color: #7a899a;
  margin: 24px 0 0;
}
.form-message {
  padding: 12px;
  border-radius: 10px;
}
.form-message.error {
  color: #9b2018;
  background: #fff3f1;
}
.form-message.success {
  color: #237a4b;
  background: #f2fbf4;
}
.password-help,
.match-help {
  font-size: 13px;
  color: var(--muted);
  margin: -10px 0 18px;
}
.editorial {
  background: var(--panel);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 36px 76px;
}
.tagline {
  position: absolute;
  right: 36px;
  top: 30px;
  color: #52658b;
}
.editorial-copy {
  position: relative;
  z-index: 2;
  margin-top: 72px;
}
.editorial h2 {
  font:
    400 clamp(48px, 5vw, 64px)/0.98 Georgia,
    serif;
  max-width: 295px;
  margin: 0;
}
.yellow-line {
  width: 36px;
  height: 5px;
  background: var(--gold);
  border-radius: 5px;
  margin: 28px 0;
}
.editorial-copy p {
  font-size: 20px;
  color: #536b93;
}
.bubbles span {
  position: absolute;
  z-index: 3;
  background: #fff;
  padding: 18px 26px;
  border-radius: 24px;
  color: #142536;
  box-shadow: 0 8px 20px #14253610;
}
.bubbles span:after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 35px;
  border: 12px solid transparent;
  border-top-color: #fff;
}
.bubbles b,
.bubbles small {
  display: block;
  font:
    28px Georgia,
    serif;
}
.bubbles small {
  font: 16px/1.3 ui-sans-serif;
  color: var(--muted);
}
.bubbles span:nth-child(1) {
  top: 96px;
  right: 72px;
}
.bubbles span:nth-child(2) {
  top: 220px;
  right: 36px;
}
.bubbles span:nth-child(3) {
  top: 370px;
  right: 145px;
}
.family-art {
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background:
    linear-gradient(180deg, #eef2ff00 0%, #eef2ff00 3%, #eef2ff18 100%),
    url('/assets/family-learning-reference.jpg') center center / cover no-repeat;
  clip-path: ellipse(95% 75% at 55% 100%);
}
.simple-card {
  max-width: 560px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 12px 40px #14253610;
}
.simple-card .brand img {
  width: 180px;
}
.simple-card h1 {
  font-size: 36px;
}
.simple-card form {
  margin: 26px 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.topbar .brand {
  margin-bottom: 0;
}
.topbar .secondary {
  height: 44px;
}
.organizer {
  max-width: 760px;
}
.admin-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.admin-list small {
  color: var(--muted);
}
.admin-list form {
  margin: 0 !important;
}
@media (max-width: 1050px) {
  .auth-page {
    grid-template-columns: minmax(0, 630px);
    justify-content: center;
  }
  .editorial {
    min-height: 360px;
  }
  .editorial-copy {
    margin-top: 40px;
  }
  .family-art {
    height: 42%;
  }
}
@media (max-width: 650px) {
  .auth-page {
    padding: 20px 14px;
    display: block;
  }
  .auth-card {
    padding: 32px 22px;
    border-radius: 22px;
  }
  .editorial {
    margin-top: 18px;
    padding: 28px 24px;
    min-height: 330px;
    border-radius: 24px;
  }
  .tagline {
    position: static;
    text-align: right;
    font-size: 12px;
  }
  .editorial-copy {
    margin-top: 38px;
  }
  .editorial h2 {
    font-size: 42px;
  }
  .bubbles span {
    position: relative;
    top: auto !important;
    right: auto !important;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 14px 0 0 auto;
    transform: none;
    padding: 14px 18px;
    border-radius: 20px;
  }
  .bubbles {
    position: relative;
    z-index: 3;
    margin-top: 18px;
  }
  .bubbles b {
    font-size: 24px;
  }
  .bubbles small {
    font-size: 14px;
  }
  .family-art {
    display: none;
  }
  .google:before {
    margin-left: -220px;
  }
  .simple-card {
    margin: 4vh 14px;
    padding: 32px 22px;
  }
}

button,
input,
a.primary,
.google {
  font-size: 1rem;
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #142536;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #ffd45c;
}
@media (max-width: 650px) {
  .google:before {
    margin-left: 0;
    position: static;
    margin-right: 12px;
  }
  .simple-card {
    overflow-wrap: anywhere;
  }
}

/* Organizer AI controls reuse the existing palette and readable account layout. */
.ai-organizer{margin:2rem 0;padding:1.5rem 0;border-block:1px solid #c6ced8;color:#142536}
.ai-organizer p{line-height:1.6;overflow-wrap:anywhere}.ai-organizer fieldset{border:1px solid #c6ced8;padding:1rem;margin-bottom:1rem}
.ai-organizer fieldset label{display:flex;align-items:center;gap:.75rem;min-height:48px;margin:.5rem 0;font-size:1rem}.ai-organizer input[type=checkbox]{width:20px;height:20px;flex:none}
.ai-organizer :focus-visible{outline:3px solid #142536;outline-offset:3px;box-shadow:0 0 0 6px #FFD45C}
.ai-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.ai-period{min-width:0;background:#EEF2FF;padding:1rem;border-radius:8px}
.ai-period dl{margin:0}.ai-period dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;border-bottom:1px solid #c6ced8}.ai-period dd{margin:0;font-weight:650}
.ai-warning{border-left:4px solid #315CDE;padding:1rem;background:#EEF2FF}
.ai-table{max-width:100%;overflow-x:auto;margin:1.5rem 0}.ai-table table{border-collapse:collapse;width:100%;font-size:1rem}.ai-table caption{text-align:left;font-weight:700;margin-bottom:.75rem}.ai-table th,.ai-table td{padding:.65rem .4rem;text-align:left;border-bottom:1px solid #c6ced8;overflow-wrap:anywhere}.ai-table td{text-align:right}.ai-table th[scope=row]{font-weight:500}
@media(max-width:600px){.ai-periods{grid-template-columns:1fr}.ai-table table{font-size:.9375rem}.ai-table th,.ai-table td{padding:.5rem .2rem}}
@media(max-width:600px){.organizer .admin-list>div{flex-wrap:wrap;justify-content:flex-start}.organizer .admin-list>div>span,.organizer .admin-list>div>code{flex-basis:100%;min-width:0;overflow-wrap:anywhere}.organizer .admin-list form{flex:none}.organizer .admin-list button{min-width:88px;min-height:44px;white-space:nowrap}}
