/* Single shared auth theme: login, signup, password setup/change and recovery.
   Host pages provide content/actions only. Colors and geometry inherit site tokens. */
body.auth-entry-page{background:var(--surface);color:var(--navy);min-height:100vh}
body.auth-entry-page.student-signin-body{background:var(--navy);color:var(--surface)}
.auth-entry-page .auth-entry-header{height:72px;padding:0 var(--space-32);border:0;background:var(--navy);color:var(--surface)}
.auth-entry-header-inner{width:100%;max-width:1100px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:var(--space-24)}
.auth-entry-header .app-identity{display:flex;align-items:center;gap:var(--space-12);margin:0;color:var(--surface)}
.auth-entry-header .aouie-brand-mark{width:36px;height:36px;object-fit:contain}
.auth-entry-header-label{font-size:var(--text-xs);color:#ccd5e5;letter-spacing:.02em}
body.auth-entry-page .portal-main.portal-guest{min-height:calc(100svh - 72px);padding:var(--space-56) var(--space-32) var(--space-80);justify-content:center}
.auth-entry-page .student-signin.login-reference-layout{width:100%;max-width:1040px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 440px;align-items:center;gap:88px}
.auth-entry-page .login-reference-layout .student-signin-intro{padding:0}
.auth-entry-page .login-reference-layout .student-signin-welcome{color:var(--action-primary);font-size:var(--text-2xs);font-weight:var(--weight-legacy-650);letter-spacing:.13em;margin:0 0 var(--space-20);text-transform:uppercase}
.auth-entry-page .student-signin-welcome:before{display:none}
.auth-entry-page .login-reference-layout .student-signin-headline{font-family:var(--font-display);color:var(--surface);font-size:var(--type-signin-headline);overflow-wrap:break-word;hyphens:auto;font-weight:var(--weight-semibold);line-height:1.14;letter-spacing:-.035em;margin:0 0 var(--space-24)}
/* Sign-in headline: the former 4vw ramp (36px at 900px to 48px at 1200px) in exact 2px rem steps, so text-only enlargement doubles it. */
@media(max-width:1199px){.auth-entry-page .login-reference-layout .student-signin-headline{font-size:calc(var(--type-signin-headline) - .125rem)}}
@media(max-width:1149px){.auth-entry-page .login-reference-layout .student-signin-headline{font-size:calc(var(--type-signin-headline) - .25rem)}}
@media(max-width:1099px){.auth-entry-page .login-reference-layout .student-signin-headline{font-size:calc(var(--type-signin-headline) - .375rem)}}
@media(max-width:1049px){.auth-entry-page .login-reference-layout .student-signin-headline{font-size:calc(var(--type-signin-headline) - .5rem)}}
@media(max-width:999px){.auth-entry-page .login-reference-layout .student-signin-headline{font-size:calc(var(--type-signin-headline) - .625rem)}}
@media(max-width:949px){.auth-entry-page .login-reference-layout .student-signin-headline{font-size:calc(var(--type-signin-headline) - .75rem)}}
.auth-entry-page .student-signin-headline em{color:var(--action-primary);font-weight:inherit}
.auth-entry-page .login-reference-layout .student-signin-description{font-size:var(--text-md-plus);line-height:1.75;color:#c4cddd;max-width:36ch;margin:0}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)){border:1px solid var(--line);border-radius:var(--radius-hero);padding:var(--space-32);background:var(--surface);box-shadow:var(--elev-hero);font-size:var(--text-md);line-height:var(--leading-160)}
.auth-entry-page .login-reference-layout .student-signin-card{width:100%;max-width:none;padding:var(--space-32);box-shadow:var(--elev-hero)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) :is(h1,h2){font-family:var(--font-display);font-size:var(--text-display);font-weight:var(--weight-semibold);line-height:var(--leading-120);letter-spacing:-.025em;margin:0 0 var(--space-10);color:var(--navy)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) header p,:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card))>p{font-size:var(--text-md);line-height:var(--leading-160);color:var(--muted);margin:0}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .auth-entry-eyebrow{font-size:var(--type-badge);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:var(--weight-legacy-650);margin:0 0 var(--space-12)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-audience{display:flex;gap:var(--space-4);padding:var(--space-4);margin:var(--space-24) 0;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg)}
.signin-audience a{display:flex;align-items:center;justify-content:center;flex:1;min-height:36px;padding:var(--space-5) var(--space-12);border:0;border-radius:var(--radius-sm);color:var(--muted);text-decoration:none;font-weight:var(--weight-semibold);font-size:var(--text-sm);box-shadow:none}
.signin-audience a:hover{color:var(--navy);background:var(--line)}
.signin-audience a[aria-current="page"]{background:var(--action-primary);color:var(--action-primary-text)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-signin-register{margin:var(--space-22) 0 0;padding:var(--space-16);background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-field);display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-12);box-shadow:none}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-create{margin:0 0 var(--space-24)}
.signin-create>div{flex:1 1 150px}
.auth-entry-page .student-signin-register strong{font-size:var(--text-sm);font-weight:var(--weight-legacy-650);line-height:var(--leading-140);color:var(--navy)}
.auth-entry-page .student-signin-register p{font-size:var(--text-xs);line-height:var(--leading-150);color:var(--muted);margin:var(--space-4) 0 0}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-signin-register .btn{min-height:36px;padding:var(--space-6) var(--space-14);border-radius:var(--action-radius,999px);font-size:var(--text-xs);font-weight:var(--weight-semibold);background:var(--surface);border:1px solid var(--line);color:var(--navy);white-space:nowrap}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-create .btn{background:var(--action-primary);border-color:var(--action-primary);color:var(--action-primary-text)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-google-form{margin:var(--space-24) 0 0}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-google-button{padding:var(--space-6) var(--space-14);border:1px solid var(--field-border);border-radius:var(--action-radius,999px);font-size:var(--text-sm);font-weight:var(--weight-semibold);color:var(--navy);background:var(--surface);gap:var(--space-10)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-google-button:hover{background:var(--surface-raised);border-color:var(--muted)}
.auth-entry-page .student-signin-divider{margin:var(--space-20) 0;color:var(--muted);font-size:var(--text-xs);gap:var(--space-12)}
.auth-entry-page .student-signin-divider:before,.auth-entry-page .student-signin-divider:after{background:var(--line)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) form:not(.student-google-form){gap:var(--space-16);margin:var(--space-20) 0 0}
.auth-entry-page .student-signin-divider+form:not(.student-google-form){margin-top:0}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) label{font-size:var(--text-sm);font-weight:var(--weight-legacy-550);text-transform:none;letter-spacing:0;line-height:var(--leading-140);margin:0 0 var(--space-7);color:var(--navy)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .input{height:38px;min-height:38px;border:1px solid var(--field-border);padding:var(--space-8) var(--space-12);font-size:var(--text-md);line-height:var(--leading-140);box-shadow:none}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card .input::placeholder{color:var(--muted)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card .input:focus{border-color:var(--action-primary);outline:0;box-shadow:none}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card .password-control .input{padding-right:var(--space-44)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card .password-toggle{width:34px;height:34px;min-height:34px;top:2px;right:4px}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card small{font-size:var(--text-xs);color:var(--muted);display:block;margin-top:var(--space-5)}
.auth-entry-page .student-signin-recovery{margin:0;font-size:var(--text-xs);text-align:right}
.auth-entry-page .student-signin-recovery a{color:var(--blue);font-weight:var(--weight-medium)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-signin-submit{height:auto;padding:var(--space-6) var(--space-14);border-radius:var(--action-radius,999px);font-size:var(--text-sm);font-weight:var(--weight-semibold);letter-spacing:0;background:var(--action-primary);border-color:var(--action-primary);color:var(--action-primary-text)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-signin-submit:disabled{background:#697786;border-color:#697786;color:var(--surface);opacity:1}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) footer{margin-top:var(--space-24);padding-top:var(--space-20);border-top:1px solid var(--line);font-size:var(--text-xs);color:var(--muted)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) footer a{text-decoration:none}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) footer a:hover{text-decoration:underline}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .alert{margin:var(--space-20) 0;padding:var(--space-12) var(--space-14);font-size:var(--text-sm);border-radius:var(--radius-lg);line-height:var(--leading-160)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .auth-entry-note{margin-top:var(--space-24);padding:var(--space-16);border:1px solid var(--line);border-radius:var(--radius-field);background:var(--surface-raised);font-size:var(--text-sm);line-height:var(--leading-160);color:var(--muted)}
.auth-entry-note strong{display:block;color:var(--navy);font-size:var(--text-sm);font-weight:var(--weight-semibold);margin-bottom:var(--space-4)}
.auth-entry-page.auth-entry-signup .client-account-form{width:min(460px,calc(100% - 40px));margin:var(--space-72) auto 96px}
.auth-entry-page a:not(.btn,.signin-create-account):focus-visible{outline:none;text-decoration:underline;text-underline-offset:4px}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) :is(a.btn,a.signin-create-account,button):focus-visible{outline:2px solid currentColor;outline-offset:-5px;text-decoration:none;box-shadow:var(--button-glow)!important}
@media(max-width:879px){
  body.auth-entry-page .portal-main.portal-guest{min-height:0;padding:var(--space-40) var(--space-20) var(--space-72)}
  .auth-entry-page .student-signin.login-reference-layout{display:block;max-width:440px}
  .auth-entry-page .student-signin-intro{display:none}
  .auth-entry-page.auth-entry-signup .client-account-form{margin-top:var(--space-40)}
}
@media(max-width:480px){
  .auth-entry-page .auth-entry-header{height:64px;padding:0 var(--space-20)}
  .auth-entry-header-label{display:none}
  body.auth-entry-page .portal-main.portal-guest{padding:var(--space-28) var(--space-16) var(--space-56)}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)),.auth-entry-page .login-reference-layout .student-signin-card{padding:var(--space-24) var(--space-20);border-radius:var(--radius-xl)}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) :is(h1,h2){font-size:var(--text-5xl)}
  .auth-entry-page.auth-entry-signup .client-account-form{width:calc(100% - 32px);margin-top:var(--space-28)}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-signin-register{padding:var(--space-14)}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-audience{margin:var(--space-20) 0}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-create{margin-bottom:var(--space-20)}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-google-form{margin-top:var(--space-20)}
  .auth-entry-page .student-signin-divider{margin:var(--space-16) 0}
}
@media(pointer:coarse),(max-width:480px){
  .auth-entry-page{--action-control-height:44px;--field-control-height:44px}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .input{min-height:44px;height:44px}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) :is(.student-google-button,.student-signin-submit),:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-signin-register .btn,.signin-audience a{min-height:44px}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card .password-toggle{width:40px;height:40px;min-height:40px}
}
@media(prefers-reduced-motion:reduce){.auth-entry-page :is(a,button,input){transition:none;animation:none}}
@media print{
  body.auth-entry-page,body.auth-entry-page.student-signin-body{background:var(--surface);color:var(--navy)}
  .auth-entry-page .auth-entry-header{height:auto;padding:12px 0;background:var(--surface);color:var(--navy)}
  .auth-entry-header .app-identity{color:var(--navy)}
  .auth-entry-header-label,.auth-entry-page .student-signin-intro{display:none}
  body.auth-entry-page .portal-main.portal-guest{padding:24px 0;min-height:0}
  .auth-entry-page .student-signin.login-reference-layout{display:block;max-width:440px}
  :is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)){box-shadow:none!important;break-inside:avoid}
}

/* 14 November 2026: one form first; Google and "Create an account" under it; the other
   sign-in is a quiet link below the card. Sign in is the only filled orange control. */
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) header{margin-bottom:var(--space-4)}
.signin-password-label{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-12)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-password-label a{font-size:var(--text-xs);font-weight:var(--weight-medium);color:var(--blue);text-decoration:none}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-password-label a:hover{text-decoration:underline}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-signin-submit{width:100%;min-height:40px}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-signin-divider+.student-google-form{margin-top:0}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .student-google-button{width:100%;min-height:40px}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) a.signin-create-account{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;margin:var(--space-12) 0 0;padding:var(--space-6) var(--space-14);box-sizing:border-box;border:1px solid var(--field-border);border-radius:var(--action-radius,999px);background:var(--surface);color:var(--navy);font-size:var(--text-sm);font-weight:var(--weight-semibold);text-decoration:none}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) a.signin-create-account:hover{background:var(--surface-raised);border-color:var(--muted)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) p.signin-create-note{margin:var(--space-8) 0 0;font-size:var(--text-xs);color:var(--muted);text-align:center}
.signin-switch{grid-column:2;margin:-64px 0 0;text-align:center;font-size:var(--text-sm);color:#c4cddd}
.signin-switch a{color:var(--surface);font-weight:var(--weight-semibold);text-underline-offset:3px}
@media(max-width:879px){.signin-switch{grid-column:1;margin:var(--space-16) 0 0}}
@media(pointer:coarse){:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) :is(.student-signin-submit,.student-google-button,a.signin-create-account){min-height:44px}}

/* 14 November 2026: the logo alone beside the card. On wide screens the small header logo is
   hidden so the brand is not shown twice; phones keep the header logo and hide this one. */
.auth-entry-page .student-signin-intro.signin-intro-logo{display:flex;align-items:center;justify-content:center;gap:var(--space-24)}
.signin-intro-logo img{display:block;width:120px;height:120px;object-fit:contain}
.signin-intro-logo img.signin-intro-lettering{width:auto;height:84px;max-width:260px}
@media(min-width:880px){.student-signin-body.auth-entry-page.has-intro-logo .auth-entry-header .app-identity{visibility:hidden}}
@media(max-width:879px){.auth-entry-page .student-signin-intro.signin-intro-logo{display:none}}
/* The approved lettering artwork is dark; shown in white on the navy sign-in canvas. */
.signin-intro-logo img.signin-intro-lettering{filter:brightness(0) invert(1)}

/* Card headings and notes on the signup and recovery cards match the sign-in card. */
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card))>h1+p{margin:0 0 var(--space-4)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card))>.student-google-form{margin-top:var(--space-20)}

/* Forgot password card, from the owner's reference (14 November 2026). */
.auth-entry-page .student-signin.login-reference-layout.signin-single{display:block;max-width:440px}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) p.signin-eyebrow{display:flex;align-items:center;gap:var(--space-10);margin:0 0 var(--space-8);color:var(--action-primary);font-size:var(--type-badge);font-weight:var(--weight-bold);letter-spacing:.14em;text-transform:uppercase}
.signin-eyebrow:before{content:"";width:22px;height:2px;background:var(--action-primary);border-radius:var(--radius-hair)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) :is(h1,h2) em{color:var(--action-primary);font-style:italic;font-weight:inherit}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) footer{text-align:center}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) footer a{color:var(--blue);font-weight:var(--weight-semibold)}

/* Audit, 14 November 2026: "Forgot password?" sits beside the label visually but follows the
   password box in the page order, so the keyboard goes email -> password -> link. */
.signin-password-field{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:var(--space-12)}
.signin-password-field>label{grid-column:1;grid-row:1}
.signin-password-field>:not(label):not(.signin-forgot){grid-column:1/-1;grid-row:2}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-password-field>a.signin-forgot{grid-column:2;grid-row:1;font-size:var(--text-xs);font-weight:var(--weight-medium);color:var(--blue);text-decoration:none}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .signin-password-field>a.signin-forgot:hover{text-decoration:underline}

:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)){color:var(--navy);font-family:var(--font-ui);box-sizing:border-box}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) :is(label,label.signin-caps-label){color:var(--navy);text-transform:none;letter-spacing:0;font-size:var(--text-sm);font-weight:var(--weight-legacy-550)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .input{border-color:var(--field-border);border-radius:var(--field-radius)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) :is(form,form:not(.student-google-form)){display:grid}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .btn-primary{width:100%}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) .portal-auth-brand{display:none}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) footer small{margin-top:var(--space-12)}

:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) label>span:first-child{color:var(--navy);text-transform:none;letter-spacing:0;font-size:var(--text-sm);font-weight:var(--weight-legacy-550)}
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) header p{overflow-wrap:anywhere}

/* Field containers own label/input spacing; legacy host forms add no inner frame. */
:is(.auth-entry-page,.auth-card-scope) .student-signin-card:where(:not(.account-card)) form{padding:0}

/* Owner,20 Nov2026: actual text lettering, with the separate approved icon. */
.signin-intro-logo .aouie-brand-text{color:#fff;gap:6px}
.signin-intro-logo .aouie-brand-text .aouie-brand-name{font-size:72px;font-weight:800;letter-spacing:-3px}
.signin-intro-logo .aouie-brand-text .aouie-brand-tagline{font-size:10px;letter-spacing:2.4px;font-weight:500}
