/* Start page (/) = sign-in screen for visitors (layout from auth.css). */
.st-new { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); display: grid; gap: 10px; text-align: center; color: var(--muted); font-size: 14.5px; }
/* hero: classroom photo with a navy gradient so the wordmark and tagline stay legible */
.st-side { display: block; }
.st-hero { position: relative; overflow: hidden; padding: 0; min-height: 520px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.st-hero picture, .st-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-photo { object-fit: cover; object-position: 50% 30%; }
.st-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 32, 58, 0) 38%, rgba(19, 32, 58, .55) 62%, rgba(19, 32, 58, .94) 100%); }
.st-copy { position: relative; z-index: 1; padding: 32px; display: grid; gap: 10px; }
.st-name { line-height: 1; display: flex; justify-content: flex-start; }
.st-name img { display: block; height: 48px; width: auto; }
.st-tag { font-size: 26px; font-weight: 600; color: #fff; }
@media (max-width: 1100px) {
  /* on tablets and phones the photo becomes a banner above the form */
  .auth.start { display: flex; flex-direction: column; }
  .st-side { display: block; order: -1; }
  .st-hero { min-height: 0; height: auto; aspect-ratio: 2 / 1; max-height: 260px; }
  .st-photo { object-position: 50% 35%; }
  .st-copy { padding: 18px 20px; gap: 6px; }
  .st-name img { height: 32px; }
  .st-tag { font-size: 18px; }
}

/* ---- the whole screen (header, photo + form, footer) fits in one viewport: no page or card scrolling ---- */
body[data-page="start"] { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body[data-page="start"] > main { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }
body[data-page="start"] .auth.start { flex: 1; padding: 16px 0; gap: 16px; min-height: 0; }
body[data-page="start"] .st-hero { min-height: 0; height: 100%; }
body[data-page="start"] .a-card { padding: clamp(18px, 3.2vh, 34px) 40px; display: flex; flex-direction: column; justify-content: center; }
body[data-page="start"] .a-card h1 { font-size: clamp(24px, 3.6vh, 32px); margin: 0; }
body[data-page="start"] .a-form { margin-top: clamp(10px, 2.2vh, 22px); gap: clamp(8px, 1.6vh, 14px); }
body[data-page="start"] .a-form .field { gap: 5px; }
body[data-page="start"] .a-form .field label { font-size: 14px; }
body[data-page="start"] .a-form .ctl.lg { min-height: clamp(42px, 6vh, 50px); height: clamp(42px, 6vh, 50px); }
body[data-page="start"] .a-form .btn.big { min-height: clamp(42px, 6vh, 50px); }
body[data-page="start"] .field-error:empty { display: none; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-row .check.inline { min-height: 36px; }
.st-row .forgot { font-size: 14px; color: var(--green); min-height: 36px; display: inline-flex; align-items: center; }
.st-code { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; background: transparent; color: var(--muted); font: 500 14px var(--font); cursor: pointer; border-radius: 12px; }
.st-code:hover { color: var(--ink); background: var(--canvas); }
body[data-page="start"] .st-new { margin-top: clamp(8px, 1.6vh, 16px); padding-top: clamp(8px, 1.6vh, 16px); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
body[data-page="start"] .st-new .btn { min-height: 42px; }
/* footer: one line, no logo */
body[data-page="start"] .site-footer.compact { margin-top: 0; padding: 12px 0; }
body[data-page="start"] .site-footer .brand { display: none; } /* desktop only: phones keep it (below) */
body[data-page="start"] .site-footer .fbot { font-size: 12.5px; }
@media (max-width: 1100px) {
  body[data-page="start"] .auth.start { padding-top: 12px; gap: 12px; }
  body[data-page="start"] .st-hero { height: auto; }
}
@media (max-width: 640px) {
  /* the banner already carries the logo: drop the header to win vertical space */
  body[data-page="start"] .auth-nav { display: none; }
  body[data-page="start"] .auth.start { padding: 10px 0; gap: 10px; }
  body[data-page="start"] .st-hero { aspect-ratio: auto; height: clamp(84px, 15vh, 140px); }
  body[data-page="start"] .st-copy { padding: 10px 16px; gap: 2px; }
  body[data-page="start"] .st-name img { height: clamp(20px, 3.2vh, 28px); }
  body[data-page="start"] .st-tag { font-size: clamp(13px, 2vh, 16px); }
  body[data-page="start"] .a-card { padding: clamp(14px, 2.4vh, 20px) 16px; }
  body[data-page="start"] .site-footer.compact { padding: 8px 0 10px; }
  body[data-page="start"] .site-footer .fbot { flex-direction: row; justify-content: center; gap: 2px 12px; font-size: 12px; text-align: center; }
  body[data-page="start"] .site-footer .fbot nav { gap: 2px 12px; justify-content: center; }
  body[data-page="start"] .site-footer .brand { display: flex; align-items: center; }
  body[data-page="start"] .site-footer .brand .logo { height: 20px; width: auto; }
}
@media (max-height: 640px) {
  body[data-page="start"] .auth.start { padding: 10px 0; gap: 10px; }
  body[data-page="start"] .a-card { padding-block: 14px; }
  body[data-page="start"] .a-form { gap: 7px; }
  body[data-page="start"] .st-row .check.inline, body[data-page="start"] .st-row .forgot { min-height: 32px; }
  body[data-page="start"] .st-code { min-height: 34px; }
  body[data-page="start"] .st-new { margin-top: 6px; padding-top: 6px; }
  body[data-page="start"] .site-footer.compact { padding: 8px 0; }
}
@media (max-width: 640px) and (max-height: 640px) {
  body[data-page="start"] .st-hero { height: 64px; }
  body[data-page="start"] .st-tag { display: none; }
  body[data-page="start"] .a-card h1 { font-size: 22px; }
  body[data-page="start"] .site-footer .fbot > span { display: none; }
}
@media (max-width: 380px) {
  body[data-page="start"] .st-new { flex-wrap: nowrap; gap: 8px; font-size: 13.5px; }
  body[data-page="start"] .st-new .btn { padding: 0 14px; font-size: 14px; }
  body[data-page="start"] .site-footer .fbot, body[data-page="start"] .site-footer .fbot nav { gap: 2px 9px; font-size: 11.5px; }
  body[data-page="start"] .site-footer .brand .logo { height: 17px; }
}

/* What the platform offers, under the sign-in card (visitors; drawn by the Worker) */
.st-tools { padding: 8px 0 48px; }
.st-tools:empty { display: none; }
.st-intro { text-align: center; max-width: 680px; margin: 24px auto 4px; }
.st-intro h2 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.st-intro p { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.st-tools .cat-sec .cat-h h3 { font-size: 19px; font-weight: 600; }
.st-more { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
@media (max-width: 640px) { .st-intro h2 { font-size: 21px; } }
