/* Auth components moved from app.css (Alpha 2–6), consolidated in one module. */
.eureka-auth-shell .login-visual{min-height:100vh;display:flex;flex-direction:column;justify-content:space-between;gap:24px}
.eureka-auth-card{max-height:calc(100vh - 60px);overflow:auto}
.eureka-login-logo{width:180px;max-width:100%;height:auto;display:block}
.eureka-root .eureka-auth-links{display:flex;flex-direction:column;gap:10px;margin-top:18px}
 .eureka-auth-shell .login-visual{min-height:180px;padding:24px}
 .eureka-auth-card{max-height:none}
/* Alpha 2: deliberate registration flow with existing EUREKA auth composition. */
.eureka-root .eureka-wizard-step{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:12px}
.eureka-root .eureka-wizard-step[hidden]{display:none!important}
.eureka-root .eureka-wizard-step legend{display:block;font-weight:750;color:#1b2644;font-size:18px;margin-bottom:7px;padding:0}
.eureka-root .eureka-wizard-step>p{margin:0 0 4px;font-size:13px;line-height:1.55;color:#58677f}
.eureka-root .eureka-wizard-progress{margin:8px 0 12px;color:#58677f;font-size:12px;font-weight:700;letter-spacing:.02em}
.eureka-root .eureka-wizard-track{height:4px;margin-top:8px;border-radius:20px;overflow:hidden;background:#e6eaf3}
.eureka-root .eureka-wizard-track span{display:block;width:25%;height:100%;border-radius:20px;background:#1b93d2;transition:width .3s ease}
.eureka-root .eureka-wizard-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.eureka-root .eureka-wizard-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-height:43px;min-width:120px}
.eureka-root .eureka-wizard-actions .btn.primary{flex:1}
/* One shared alert geometry for wizard errors and server-returned notices. */
.eureka-root .eureka-wizard-error,
.eureka-root .eureka-auth-feedback--error{border:0;border-left:4px solid #d23f4d;border-radius:0;background:#fff2f3;color:#98252a;padding:12px 14px;font-size:13px;line-height:1.55;margin:0 0 16px;box-shadow:none}
.eureka-root .eureka-auth-feedback--info{border:0;border-left:4px solid #659cfa;border-radius:0;background:#edf4ff;color:#385f97;padding:12px 14px;font-size:13px;line-height:1.55;margin:0 0 16px}
.eureka-root .eureka-wizard-consent{display:flex;align-items:flex-start;gap:12px;border:1px solid #e2e8f3;background:#fff;border-radius:10px;padding:12px;font-size:13px;line-height:1.52;font-weight:400;cursor:pointer}
.eureka-root .eureka-wizard-consent:hover{border-color:#aebeed;background:#f9fbff}
.eureka-root .eureka-wizard-consent input[type="checkbox"]{flex:0 0 19px;width:19px;min-width:19px;max-width:19px;height:19px;min-height:19px;margin:1px 0 0;padding:0;accent-color:#4e59d8}
.eureka-root .eureka-form .eureka-wizard-consent > span{flex:1;min-width:0;display:block;font-size:13px;font-weight:400;margin:0}
.eureka-root .eureka-form .eureka-wizard-consent > span :is(strong,b){font-weight:400}
.eureka-root .eureka-wizard-consent span a,.eureka-root .eureka-wizard-privacy-note a{color:#4252c4;text-decoration:underline;text-underline-offset:2px}
.eureka-root .eureka-wizard-consent input[aria-invalid="true"]{outline:2px solid #d93640;outline-offset:2px}
.eureka-root .eureka-wizard-privacy-note{font-size:12px!important;padding:0 2px}
.eureka-root .eureka-registration-success{text-align:center;display:flex;flex-direction:column;align-items:center;gap:13px;padding:20px 0}
.eureka-root .eureka-registration-success .dashicons{font-size:48px;width:48px;height:48px;color:#26a270}
.eureka-root .eureka-registration-success h2{margin:0}
.eureka-root .eureka-registration-success p{margin:0;line-height:1.6}
/* Alpha 3 — password recovery status and multi-stage registration. */
.eureka-root .eureka-email-check{font-size:13px;min-height:18px;color:#57677f;line-height:1.5}
.eureka-root .eureka-auth-links a{display:inline-block}
.eureka-root .eureka-wizard-actions .btn:disabled,.eureka-root .eureka-form .btn:disabled{opacity:.55;cursor:not-allowed}

/* Alpha 4: registration UX refinements (existing content and consent logic remain unchanged). */
.eureka-root .eureka-auth-card > h2{margin-bottom:20px}
.eureka-root .eureka-auth-card > .eureka-notice{
  background:#edf4ff;color:#385f97;border:0;
  border-left:4px solid #669cff;border-radius:0;
  padding:12px 14px;font-size:13px;line-height:1.55;
  box-shadow:none;
}
.eureka-root .eureka-wizard-step legend{margin-bottom:13px}
.eureka-root .eureka-wizard-step .eureka-registration-code-input{
  width:100%;min-height:44px;min-width:0;
}
.eureka-root .eureka-wizard-actions .btn.primary{gap:9px}
.eureka-root .eureka-button-chevron{display:inline-block;flex:0 0 17px;vertical-align:middle;transition:transform .16s ease}
.eureka-root .eureka-wizard-actions .btn.primary:hover .eureka-button-chevron{transform:translateX(2px)}
.eureka-root .eureka-auth-card .eureka-auth-switch{
  margin:16px 0 0!important;text-align:center;
  font-size:13px;line-height:1.45;color:#687991;
}
.eureka-root .eureka-auth-card .eureka-auth-switch a{
  color:#697894;text-decoration:none;font-weight:500;
}
.eureka-root .eureka-auth-card .eureka-auth-switch a:hover{text-decoration:underline;text-underline-offset:3px}
.eureka-root .eureka-register-field{min-width:0;width:100%;margin:0}
.eureka-root .eureka-register-field-heading{display:flex;align-items:center;gap:13px;min-height:20px;margin-bottom:6px}
.eureka-root .eureka-register-field-heading label{font-size:13px;font-weight:600;color:#263653;cursor:pointer}
.eureka-root .eureka-help-wrap{position:relative;display:inline-flex;align-items:center}
.eureka-root .eureka-help-trigger{
  display:inline-flex;align-items:center;justify-content:center;
  width:13px;height:13px;padding:0;border:1.6px solid #4f66bb;border-radius:50%;
  color:#344a98;background:transparent;font:650 9px/1 system-ui,sans-serif;
  cursor:pointer;transition:background .15s,border-color .15s;
}
.eureka-root .eureka-help-trigger:hover,.eureka-root .eureka-help-trigger[aria-expanded="true"]{background:transparent;border-color:#345bb5;color:#284f9a}
.eureka-root .eureka-help-trigger:focus-visible,.eureka-root .eureka-password-toggle:focus-visible{outline:2px solid #4966d7;outline-offset:3px}
.eureka-root .eureka-help-tip{
  position:absolute;z-index:30;top:calc(100% + 9px);left:-5px;
  width:min(298px,calc(100vw - 70px));padding:12px 13px;
  border:1px solid #d8e3f4;border-radius:9px;background:#fff;
  box-shadow:0 12px 32px rgba(20,34,68,.16);color:#3d4d66;
  font-size:12px;font-weight:400;line-height:1.55;
}
.eureka-root .eureka-register-input-wrap{position:relative;min-width:0}
.eureka-root .eureka-register-input-wrap input{width:100%;display:block}
.eureka-root .eureka-register-input-wrap.has-password-toggle input{padding-right:46px}
.eureka-root .eureka-password-toggle{
  position:absolute;top:50%;right:6px;transform:translateY(-50%);
  width:35px;height:35px;padding:7px;display:flex;align-items:center;justify-content:center;
  border:0;border-radius:7px;background:transparent;color:#73819a;cursor:pointer;
}
.eureka-root .eureka-password-toggle:hover{background:#eef3fd;color:#3a5280}
.eureka-root .eureka-password-toggle svg{width:20px;height:20px;display:block}
.eureka-root .eureka-password-toggle svg[hidden]{display:none!important}
.eureka-root .eureka-required-star{font-weight:800;color:#d63240;padding-left:1px}
.eureka-root .eureka-wizard-consent.eureka-consent-invalid{
  border:1px solid #e4505c;background:#fff3f3;
  box-shadow:0 0 0 1px rgba(228,80,92,.10);
}
.eureka-root .eureka-wizard-consent.eureka-consent-invalid:hover{border-color:#df3b4b;background:#ffefef}
.eureka-root .eureka-wizard-consent.eureka-consent-invalid input[type="checkbox"]{outline:2px solid #d93640;outline-offset:2px}
@media(max-width:470px){
 .eureka-root .eureka-help-tip{width:min(255px,calc(100vw - 100px))}
}

/* Alpha 5 — teacher registration typography and bounded popovers. */
.eureka-root .eureka-auth-card >h2{font-size:21px!important;font-weight:700!important;line-height:1.3;margin:0 0 23px!important;color:#142344}
.eureka-root .eureka-wizard-step legend{font-size:15px!important;font-weight:700!important;line-height:1.45;margin:0 0 3px!important}
.eureka-root .eureka-wizard-step .eureka-key-description{font-size:13px!important;font-weight:400!important;line-height:1.5;color:#65758e;margin:0 0 8px!important}
.eureka-root .eureka-wizard-progress{margin:10px 0 22px}
.eureka-root .eureka-help-tip{position:fixed!important;z-index:2147480000!important;max-width:calc(100vw - 24px);min-width:0;max-height:calc(100vh - 20px);overflow:auto;left:0;top:0;box-sizing:border-box}
.eureka-root .eureka-register-field-heading{gap:12px!important}
.eureka-root .eureka-register-field-heading label{margin:0!important}
.eureka-root .eureka-register-field .eureka-register-field-heading .eureka-help-wrap{margin:0;flex:0 0 auto}
.eureka-root .eureka-wizard-consent .eureka-required-star{display:inline!important;white-space:nowrap!important;flex:none!important;margin:0!important;color:#d23d46;font-weight:800}
.eureka-root .eureka-wizard-consent.eureka-consent-invalid{background:#fff!important;border-color:#d7dfec!important;box-shadow:none!important}
.eureka-root .eureka-wizard-consent.eureka-consent-invalid:hover{background:#fff!important;border-color:#c2cfe5!important}
.eureka-root .eureka-wizard-consent.eureka-consent-invalid input[type="checkbox"]{outline:1.5px solid #d64550!important;outline-offset:2px!important}

/* Alpha 5 — responsive invitation for pupil (no visible invite code). */
.eureka-root .eureka-invite-identity{display:flex;gap:13px;align-items:center;padding:16px 0 21px;margin:0 0 8px;border-bottom:1px solid #e8edf5;min-width:0}
.eureka-root .eureka-invite-avatar{width:53px;height:53px;flex:0 0 53px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:#f0f3fd;border:1px solid #e2e9f7;font-size:27px}
.eureka-root .eureka-invite-identity-copy{min-width:0;display:flex;flex:1 1 0;flex-direction:column;gap:4px}
.eureka-root .eureka-invite-identity-copy strong{font-size:17px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;color:#152542}
.eureka-root .eureka-invite-identity-copy small{font-size:13px;font-weight:400;color:#6c7790;line-height:1.4}
.eureka-root .eureka-invite-identity-copy small b{font-weight:650;color:#344563}
.eureka-root .eureka-invite-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.eureka-root .eureka-invite-actions .btn{display:inline-flex;justify-content:center;align-items:center;min-height:44px;min-width:0;font-size:13px;font-weight:700;text-decoration:none}
.eureka-root .eureka-existing-account{background:#fff;color:#243451;border:1px solid #d8dfec}
.eureka-root [data-eureka-join-form] .eureka-form{margin:18px 0 12px}
.eureka-root [data-eureka-join-form] .eureka-submit{align-self:stretch!important;width:100%;justify-content:center;margin:7px 0}
.eureka-root .eureka-join-back{display:block;margin:8px auto 0;border:0;background:transparent;color:#647899;font-size:13px;cursor:pointer}
.eureka-root .eureka-join-back:hover{text-decoration:underline}
@media(max-width:460px){.eureka-root .eureka-invite-actions{grid-template-columns:1fr}}


/* Alpha 6: shared auth design tokens; v428 provides the base components. */
.eureka-root .eureka-auth-card{max-height:calc(100vh - 48px);overflow:auto}
.eureka-root .eureka-auth-shell .login-visual h1{font-weight:400}
.eureka-root .eureka-auth-card .eureka-auth-heading{font-size:21px;font-weight:700;line-height:1.3;color:#142344;margin:0 0 22px}
.eureka-root .eureka-auth-card .eureka-form{gap:14px;margin:0}
.eureka-root .eureka-auth-card .eureka-form .register-field span{font-size:13px;font-weight:600}
.eureka-root .eureka-auth-card .eureka-login-submit{display:inline-flex;align-items:center;gap:8px;justify-content:center;min-height:42px;margin-top:4px;font-size:13px}
.eureka-root .eureka-auth-card .eureka-login-submit .dashicons{width:18px;height:18px;font-size:18px;line-height:18px}
.eureka-root .eureka-auth-card .eureka-auth-switch{font-size:13px;font-weight:400;text-align:center;margin:17px 0 0}
.eureka-root .eureka-auth-card .eureka-auth-switch a{font-weight:400;color:#738097}
.eureka-root .eureka-auth-card .eureka-auth-tabs{display:flex;align-items:end;gap:26px;margin:0 0 24px;border-bottom:1px solid #e7ebf3}
.eureka-root .eureka-auth-tabs a{position:relative;padding:0 0 11px;font-size:21px;font-weight:700;line-height:1.3;color:#a1a9b8;text-decoration:none;transition:color .15s ease}
.eureka-root .eureka-auth-tabs a::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;transform:scaleX(0);transform-origin:center;background:#1b93d2;transition:transform .15s ease}
.eureka-root .eureka-auth-tabs a:hover{color:#26314a}
.eureka-root .eureka-auth-tabs a:not([aria-current="page"]):hover::after{transform:scaleX(0)}
.eureka-root .eureka-auth-tabs a[aria-current="page"]:hover::after{transform:scaleX(1)}
.eureka-root .eureka-auth-tabs a[aria-current="page"]{color:#263b81}
.eureka-root .eureka-auth-tabs a[aria-current="page"]::after{background:#1b93d2;transform:scaleX(1)}
/* The two role choices are vertically stacked, horizontal-content tiles. */
.eureka-root .eureka-auth-choice{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:3px}
.eureka-root .eureka-auth-choice .btn{
  display:flex;align-items:center;justify-content:flex-start;text-align:left;
  gap:18px;min-height:100px;min-width:0;padding:18px 22px;
  background:#fff!important;color:#273553!important;border:1px solid #d8dfeb!important;
  border-radius:9px;text-decoration:none;font-size:18px;line-height:1.3;font-weight:500;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.eureka-root .eureka-auth-choice .btn:is(:hover,:focus-visible){background:#f2f5fd!important;border-color:#a8b8de!important;color:#263b81!important}
.eureka-root .eureka-auth-choice .btn:focus-visible{outline:2px solid #1b93d2;outline-offset:2px}
.eureka-root .eureka-auth-choice .dashicons{font-size:30px;width:30px;height:30px;line-height:30px;color:currentColor}
.eureka-root .eureka-auth-info{font-size:14px;color:#667389;line-height:1.6;margin:0}
.eureka-root .eureka-registration-success{padding:10px 0;gap:12px}
.eureka-root .eureka-registration-success .dashicons{font-size:36px;width:36px;height:36px;line-height:36px;color:#a5afc0}
.eureka-root .eureka-registration-success h2{font-size:21px;font-weight:700;line-height:1.32}
.eureka-root .eureka-registration-success p{font-size:15px;font-weight:400;line-height:1.55;max-width:365px;color:#485771}
.eureka-root .eureka-registration-success p.eureka-muted{color:#77859b}
.eureka-root .eureka-registration-success .eureka-auth-switch{margin:3px 0 0}
.eureka-root .eureka-registration-success .btn{font-size:13px;min-height:40px}

.eureka-root .eureka-auth-card :is(.eureka-submit,.eureka-registration-success .btn){
  display:flex;align-items:center;justify-content:center;gap:9px;
  min-height:48px;
}
.eureka-root .eureka-auth-btn-icon{display:block;width:18px;height:18px;flex:0 0 18px;stroke:currentColor;}
/* Matches the shared 30 px role tile icon for teacher and student. */
.eureka-root .eureka-auth-card .eureka-auth-choice .eureka-auth-btn-icon{width:30px;height:30px;flex:0 0 30px;color:currentColor;}
.eureka-root .eureka-registration-success > .eureka-auth-btn-icon{width:42px;height:42px;color:#a5afc0;flex:0 0 42px;}
.eureka-root .eureka-auth-view-resend .eureka-auth-resend-body .eureka-submit{width:100%;align-self:stretch;}
.eureka-root .eureka-auth-view-resend .eureka-form{width:100%;}
.eureka-root .eureka-auth-view-resend .eureka-auth-switch{font-size:12px;}
.eureka-root .eureka-registration-success{flex:1;justify-content:center;}
.eureka-root .eureka-registration-success .eureka-auth-switch{margin-top:auto!important;}

/* v428 logo/tagline and menu state are owned by prototype.css, not redeclared here. */
@media(max-width:760px){
 .eureka-root .eureka-auth-card{max-height:none}
 .eureka-root .eureka-auth-tabs a{font-size:19px}
}

/* EUREKA Alpha 7: public auth layout only. One shared token group; no view-specific duplicates. */
.eureka-auth-shell{
  --eureka-auth-ink:#26314a;
  --eureka-auth-border:#d8deeb;
  --eureka-auth-radius:6px;
}
.eureka-root .eureka-auth-shell .login-visual{
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  gap:28px;min-height:100vh;
  padding:clamp(28px,4vw,62px);
  align-items:stretch;
}
.eureka-root .eureka-login-logo{width:180px}
.eureka-root .eureka-landing-carousel{
  align-self:center;width:100%;max-width:590px;
  margin:0 auto;opacity:1;transition:opacity .45s ease;
}
.eureka-root .eureka-landing-carousel.is-fading{opacity:0}
.eureka-root .eureka-landing-carousel h1{
  font-size:clamp(28px,3vw,41px);font-weight:400;letter-spacing:-.025em;
  line-height:1.2;margin:0 0 15px;max-width:unset;text-wrap:balance;
}
.eureka-root .eureka-landing-caption{
  font-size:clamp(12px,1vw,13px);color:#b8bdd2;line-height:1.65;
  letter-spacing:0;max-width:520px;margin:0;
}
.eureka-root .eureka-landing-caption:empty{display:none}
.eureka-root .eureka-landing-footer{align-self:end;max-width:620px;width:100%;font-size:11px;color:#aeb6c9;line-height:1.6}
.eureka-root .eureka-landing-footer p{font-size:11px;margin:12px 0 0;max-width:none;line-height:1.6;color:#aeb6c9}
.eureka-root .eureka-landing-links{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.eureka-root .eureka-landing-links a{
  font-size:12px;color:#dde1f0;text-decoration:none;
  text-underline-offset:4px;text-decoration-thickness:1px;
}
.eureka-root .eureka-landing-links a:hover,
.eureka-root .eureka-landing-links a:focus-visible{color:#fff;text-decoration:underline}
.eureka-root .eureka-auth-card .eureka-form :is(input:not([type="checkbox"]),textarea,select){border-radius:var(--eureka-auth-radius)}
.eureka-root .eureka-auth-card .eureka-login-submit,
.eureka-root .eureka-auth-card .eureka-auth-choice .btn{
  display:inline-flex;width:100%;min-width:0;align-self:stretch;align-items:center;
}
.eureka-root .eureka-auth-tabs a[aria-current="page"]{color:var(--eureka-auth-ink)}
.eureka-root .eureka-auth-tabs a[aria-current="page"]::after{background:#1b93d2}
.eureka-root .eureka-auth-card .eureka-auth-choice{width:100%;}
.eureka-root .eureka-auth-card .eureka-auth-info{color:#33445f;font-size:16px;line-height:1.7}
.eureka-root .eureka-auth-info p{margin:0 0 15px}
.eureka-root .eureka-auth-card .eureka-auth-switch a:hover{color:var(--eureka-auth-ink)}
.eureka-root .eureka-auth-card[aria-busy="true"]{opacity:.7;pointer-events:none}
.eureka-root .eureka-auth-shell .eureka-wizard-step .eureka-register-input-wrap input{border-radius:var(--eureka-auth-radius)}
.eureka-root .eureka-cmp-notice{font-size:12px;color:#eff2ff;margin:6px 0 0}
@media(max-width:760px){
  .eureka-root .eureka-auth-shell{display:flex;flex-direction:column;min-height:100vh}
  .eureka-root .eureka-auth-shell .login-card-wrap{
    order:0;display:grid;align-items:start;min-height:0;padding:clamp(18px,5vw,30px) 16px;
  }
  .eureka-root .eureka-auth-shell .login-card{width:min(450px,100%)}
  .eureka-root .eureka-auth-shell .login-visual{
    display:grid!important;flex:1;order:1;grid-template-rows:auto auto auto;
    min-height:0;gap:30px;padding:clamp(28px,6vw,44px) 24px;
  }
  .eureka-root .eureka-auth-card{max-height:none}
  .eureka-root .eureka-landing-carousel{align-self:start}
  .eureka-root .eureka-landing-carousel h1{font-size:clamp(24px,6vw,32px)}
  .eureka-root .eureka-landing-footer{align-self:start}
}
@media(prefers-reduced-motion:reduce){
  .eureka-root .eureka-landing-carousel{transition:none}
}

/* Alpha 8 — stable auth cards, two-layer composition for fixed action links. */
.eureka-root .eureka-auth-card{display:flex;flex-direction:column;min-height:390px;width:min(450px,100%);}
.eureka-root .eureka-auth-card .eureka-auth-tabs{flex:0 0 auto;}
.eureka-root .eureka-auth-card .eureka-auth-switch{margin-top:auto!important;padding-top:18px;flex:0 0 auto;}
.eureka-root .eureka-auth-view-login .eureka-form{margin:auto 0!important;}
.eureka-root .eureka-auth-view-choose-registration .eureka-auth-choice,
.eureka-root .eureka-auth-view-student-registration .eureka-auth-info,
.eureka-root .eureka-auth-view-forgot .eureka-recovery-role,
.eureka-root .eureka-auth-view-forgot .eureka-recovery-detail,
.eureka-root .eureka-auth-view-resend .eureka-auth-resend-body{
  margin-top:auto;margin-bottom:auto;flex:0 0 auto;
}
.eureka-root .eureka-auth-view-forgot .eureka-auth-heading{font-weight:650;font-size:21px;}
.eureka-root .eureka-auth-view-forgot .eureka-auth-description{font-size:17px;color:#34445f;line-height:1.65;margin:0;}
.eureka-root .eureka-auth-view-forgot .eureka-auth-choice .btn{width:100%;}
.eureka-root .eureka-auth-view-forgot .eureka-form{margin:0!important;gap:12px;}
.eureka-root .eureka-auth-view-forgot .eureka-submit{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;}
.eureka-root .eureka-auth-view-forgot .eureka-submit .dashicons{width:18px;height:18px;line-height:18px;font-size:18px;}
.eureka-root .eureka-auth-view-forgot .eureka-email-check{font-size:12px;min-height:0;}
.eureka-root .eureka-wizard-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex-wrap:nowrap;}
.eureka-root .eureka-wizard-actions>.btn{width:100%;min-width:0!important;margin:0;gap:8px;}
.eureka-root .eureka-wizard-actions>.btn:only-child{grid-column:1/-1;}
.eureka-root .eureka-wizard-actions .eureka-button-chevron-left{transform:rotate(180deg);}
.eureka-root .eureka-wizard-actions .btn:hover .eureka-button-chevron-left{transform:rotate(180deg) translateX(2px);}

.eureka-root .eureka-register-field-heading{gap:5px!important;}
.eureka-root .eureka-register-field-heading .eureka-help-wrap{margin-left:0!important;}
.eureka-root .eureka-wizard-step legend{margin-bottom:18px!important;}
.eureka-root .eureka-wizard-step .eureka-register-field:first-of-type{margin-top:3px;}
@media(max-width:760px){.eureka-root .eureka-auth-card{min-height:390px;}}

/* Alpha 10 — auth/invitation refinements */
.eureka-root .eureka-auth-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;flex-wrap:wrap}
.eureka-root .eureka-auth-meta .eureka-auth-switch{margin:0!important;padding-top:0!important;text-align:left;flex:1 1 auto}
.eureka-root .eureka-auth-meta .eureka-auth-switch a{font-weight:500}
.eureka-root .eureka-auth-required-note{margin:0;font-size:12px;line-height:1.4;color:#d03d4f;white-space:nowrap}
.eureka-root .register-field>span{display:inline-flex;align-items:center;gap:2px}
.eureka-root .eureka-register-field-heading label{display:inline-flex;align-items:center;gap:2px}
.eureka-root .eureka-help-trigger{width:11px;height:11px;border-width:1.2px;font-size:7px;color:#5c6f98;border-color:currentColor;background:transparent}
.eureka-root .eureka-help-trigger:hover,.eureka-root .eureka-help-trigger[aria-expanded="true"]{color:#465b86;border-color:currentColor;background:transparent}
.eureka-root .eureka-auth-view-student-registration .eureka-auth-info,
.eureka-root .eureka-auth-view-forgot .eureka-auth-description{font-size:17px;line-height:1.7;color:#3d4d66}
.eureka-root .eureka-registration-success{gap:16px}
.eureka-root .eureka-registration-success .btn{margin:4px 0 2px}
.eureka-root .eureka-registration-success p{max-width:390px}
.eureka-root .eureka-registration-success p.eureka-muted{font-size:16px;color:#6f7f95}
.eureka-root .eureka-auth-view-join{min-height:auto!important}
.eureka-root .eureka-auth-view-join .eureka-invite-actions{margin-top:18px}
.eureka-root .eureka-invite-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.eureka-root .eureka-invite-actions .btn{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px}
.eureka-root .eureka-invite-actions .eureka-existing-account{background:#fff!important;color:#273553!important;border:1px solid #d8dfeb!important}
.eureka-root .eureka-invite-actions .eureka-existing-account:hover{background:#f2f5fd!important;border-color:#a8b8de!important;color:#263b81!important}
.eureka-root .eureka-join-back{margin-top:16px;font-size:13px;color:#6d7b92;background:transparent;border:0;padding:0;cursor:pointer}
.eureka-root .eureka-auth-view-join .eureka-register-field{margin-bottom:2px}
.eureka-root .eureka-invite-invalid{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;padding:8px 0}
.eureka-root .eureka-invite-invalid>.eureka-auth-btn-icon{width:52px;height:52px;flex:0 0 52px;color:#d03d4f;overflow:visible}
.eureka-root .eureka-invite-invalid h2{margin:0;font-size:15px;line-height:1.2;letter-spacing:.04em;font-weight:700;color:#d03d4f}
.eureka-root .eureka-invite-invalid p{margin:0;max-width:420px;font-size:16px;line-height:1.62;color:#42516c;font-weight:500}
.eureka-root .eureka-invite-invalid p.eureka-muted{color:#586883;font-weight:400}
.eureka-root .eureka-invite-invalid .eureka-auth-switch{margin-top:10px!important}
.eureka-root .eureka-invite-invalid .eureka-auth-switch a{font-weight:600}
.eureka-root .eureka-auth-view-login .eureka-invite-identity{margin-bottom:18px}
.eureka-root .eureka-auth-view-login .eureka-submit .eureka-auth-btn-icon,
.eureka-root .eureka-auth-view-forgot .eureka-submit .eureka-auth-btn-icon,
.eureka-root .eureka-auth-view-resend .eureka-submit .eureka-auth-btn-icon{width:18px;height:18px;flex:0 0 18px}
@media(max-width:760px){
  .eureka-root .eureka-auth-meta{align-items:flex-start}
  .eureka-root .eureka-auth-required-note{width:100%;text-align:right}
  .eureka-root .eureka-invite-actions{grid-template-columns:1fr}
}

/* Alpha 11 — one shared auth footer, two contextual invite actions and exact user icon. */
.eureka-root .eureka-auth-card .eureka-auth-switch a,
.eureka-root .eureka-auth-card .eureka-auth-meta .eureka-footer-back,
.eureka-root .eureka-auth-card .eureka-join-back{font-weight:500!important}
.eureka-root .eureka-auth-meta,
.eureka-root .eureka-auth-view-register .eureka-auth-meta{
  display:flex;flex-direction:row;flex-wrap:nowrap!important;align-items:center;
  justify-content:space-between;gap:10px;margin-top:auto;padding-top:18px;min-width:0;
}
.eureka-root .eureka-auth-meta .eureka-auth-switch{
  min-width:0;flex:0 1 auto;margin:0!important;padding:0!important;
  white-space:nowrap;text-align:left;
}
.eureka-root .eureka-auth-meta .eureka-footer-back{flex:0 1 auto;text-align:left;margin:0;padding:0;background:none;border:0;color:#697894;cursor:pointer;font-size:13px}
.eureka-root .eureka-auth-required-note{
  flex:0 0 auto;white-space:nowrap;width:auto!important;margin:0!important;
  font-size:12px;line-height:1.45;font-weight:500;text-align:right;color:#d03d4f;
}
.eureka-root .eureka-auth-card .eureka-help-trigger{
  width:16px;height:16px;border:0!important;padding:0;background:transparent!important;
  color:#63779c;display:inline-flex;align-items:center;justify-content:center;
}
.eureka-root .eureka-help-trigger .eureka-help-icon{display:block;width:16px;height:16px;stroke:currentColor}
.eureka-root .eureka-auth-card .eureka-help-trigger:is(:hover,[aria-expanded="true"]){color:#3e5999;background:transparent!important}
.eureka-root .eureka-invite-login-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:5px}
.eureka-root .eureka-invite-login-actions .btn{
  width:100%;min-width:0;min-height:49px;display:inline-flex;align-items:center;
  justify-content:center;gap:9px;margin:0!important;
}
.eureka-root .eureka-invite-login-actions>a.btn{
  background:#fff!important;color:#273553!important;border:1px solid #d8dfeb!important;
}
.eureka-root .eureka-invite-login-actions>a.btn:hover{
  background:#f2f5fd!important;color:#26314a!important;border-color:#a8b8de!important;
}
.eureka-root .eureka-invite-login-actions .eureka-button-chevron-left{transform:rotate(180deg)}
.eureka-root .eureka-auth-view-login .eureka-auth-login-error{margin:0 0 17px}
.eureka-root .eureka-invite-meta{margin-top:18px;padding-top:12px}
.eureka-root .eureka-auth-view-forgot .eureka-invite-recovery{margin:auto 0;font-size:17px}
/* Loader covers the complete right column even when the wizard card scrolls. */
.eureka-root .eureka-auth-shell .login-card-wrap{position:relative;isolation:isolate}
.eureka-root .eureka-auth-card{position:relative;isolation:isolate}
.eureka-root .eureka-auth-card[aria-busy="true"]{opacity:1!important;pointer-events:none}
.eureka-root .eureka-auth-loading[hidden]{display:none!important}
.eureka-root .eureka-auth-loading{
  display:flex;position:absolute;z-index:40;inset:0;align-items:center;justify-content:center;
  background:rgba(247,248,251,.94);border-radius:0;
}

@media(max-width:760px){
 .eureka-root .eureka-auth-meta{flex-wrap:nowrap!important;align-items:center!important}
 .eureka-root .eureka-auth-required-note{width:auto!important;text-align:right!important}
 .eureka-root .eureka-invite-login-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Alpha 12: pupil's two-stage registration reuses teacher wizard primitives. */
.eureka-root .eureka-student-wizard .eureka-form{display:flex;flex-direction:column;gap:0;margin:16px 0 0}
.eureka-root .eureka-student-wizard .eureka-wizard-progress{margin:10px 0 22px}
/* The student's preview is outside a gap:14px form, unlike the teacher's.
   Match the teacher's measured 26px space between preview and step title. */
.eureka-root .eureka-student-avatar-hero[data-eureka-avatar-hero]{margin-bottom:26px}
.eureka-root .eureka-student-wizard .eureka-wizard-step{display:flex;flex-direction:column;gap:12px;min-width:0}
.eureka-root .eureka-student-wizard .eureka-wizard-step[hidden]{display:none!important}
.eureka-root .eureka-student-wizard .eureka-wizard-step legend{padding:0;margin-bottom:17px!important}
.eureka-root .eureka-student-wizard .eureka-wizard-consent{margin:0}
.eureka-root .eureka-student-wizard .eureka-wizard-actions{margin-top:19px}
.eureka-root .eureka-student-wizard .eureka-wizard-actions .btn{min-width:0}
.eureka-root .eureka-student-wizard .eureka-auth-meta{margin-top:18px}
.eureka-root .eureka-student-wizard .eureka-register-field{margin-bottom:1px}
.eureka-root .eureka-student-wizard .eureka-student-error:not([hidden]){margin:0 0 12px}

.eureka-root .eureka-student-wizard .eureka-avatar-editor{margin:3px 0 5px;gap:11px}
/* Step-one registration note is intentionally tight to the heading. */
.eureka-root .eureka-auth-view-register .eureka-wizard-step[data-eureka-wizard-step="1"] legend{margin-bottom:3px!important}
.eureka-root .eureka-auth-view-register .eureka-wizard-step[data-eureka-wizard-step="1"] .eureka-key-description{margin:0 0 8px!important}
.eureka-root .eureka-auth-view-register .eureka-wizard-step[data-eureka-wizard-step="2"] .eureka-avatar-editor{margin-top:2px;margin-bottom:5px}
.eureka-root .eureka-avatar-badge.eureka-invite-avatar{background:var(--avatar-bg,#E9EEFF);border-color:rgba(35,54,90,.09)}


/* Alpha 16: the desktop login split is one viewport high.  The form card is the
   only vertical scrollport: switching steps or focusing a validation error may
   never make the page itself scroll.  Mobile retains its normal document flow. */
@media (min-width:761px) {
  body.eureka-root:has(.eureka-auth-shell) {
    height:100vh;
    height:100dvh;
    overflow:hidden;
  }
  .eureka-root .eureka-auth-shell.login-shell {
    height:100vh;
    height:100dvh;
    min-height:0;
    overflow:hidden;
    grid-template-rows:minmax(0,1fr);
  }
  .eureka-root .eureka-auth-shell .login-visual {
    min-height:0;
    height:100%;
    overflow:hidden;
  }
  .eureka-root .eureka-auth-shell .login-card-wrap {
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
    padding:32px clamp(16px,3vw,38px);
  }
  .eureka-root .eureka-auth-shell .eureka-auth-card {
    max-height:calc(100vh - 64px);
    max-height:calc(100dvh - 64px);
    min-height:min(390px, calc(100dvh - 64px));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    /* Keep equal visible horizontal insets even when the inner card scrolls.
       stable alone reserved a scrollbar track only on the right side (Alpha 19). */
    scrollbar-gutter:stable both-edges;
  }
}

/* Alpha 19 — teacher-authored welcome cards for active group invitations. */
.eureka-root .eureka-invite-carousel{max-width:590px;width:100%;align-self:center}
.eureka-root .eureka-invite-carousel-controls{display:flex;align-items:center;gap:10px;margin:0 0 27px}
.eureka-root .eureka-invite-carousel-dot{display:block;width:13px;height:13px;border:1px solid #33374c;border-radius:2px;background:#33374c;padding:0;cursor:pointer;transition:background-color .16s,border-color .16s}
.eureka-root .eureka-invite-carousel-dot:hover,
.eureka-root .eureka-invite-carousel-dot.is-active{border-color:#1b93d2;background:#1b93d2}
.eureka-root .eureka-invite-carousel-dot:focus-visible{outline:2px solid #fff;outline-offset:4px}
/* CSS grid sizes to the tallest overlapping child, without a JS height flash. */
.eureka-root .eureka-invite-carousel-pages{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.eureka-root .eureka-invite-carousel-page{grid-area:1 / 1;min-width:0;align-self:start;visibility:hidden;pointer-events:none;opacity:0;transition:opacity .2s ease}
.eureka-root .eureka-invite-carousel-page.is-active{visibility:visible;pointer-events:auto;opacity:1}
.eureka-root .eureka-invite-carousel-page h1{margin:0 0 19px;max-width:590px;line-height:1.21;text-wrap:balance}
.eureka-root .eureka-invite-carousel-body{font-size:clamp(15px,1.3vw,18px);font-weight:400;line-height:1.65;color:#d7dced;max-width:590px;overflow-wrap:anywhere}
.eureka-root .eureka-invite-carousel-body p{margin:0 0 16px}
.eureka-root .eureka-invite-carousel-body strong,.eureka-root .eureka-invite-carousel-body b{color:#fff;font-weight:700}
.eureka-root .eureka-invite-carousel-body ul,.eureka-root .eureka-invite-carousel-body ol{padding-left:24px;margin:10px 0 18px;list-style-position:outside}
.eureka-root .eureka-invite-carousel-body li{margin:5px 0}
@media(max-width:760px){
 .eureka-root .eureka-invite-carousel{align-self:start}
 .eureka-root .eureka-invite-carousel-controls{margin-bottom:22px}
}
@media(prefers-reduced-motion:reduce){.eureka-root .eureka-invite-carousel-page{transition:none}}

.eureka-root .eureka-invite-carousel-body div{margin:0 0 12px}

/* Alpha 24 — mobile welcome that slides away to reveal the actual WP form.
   Kept behind .eureka-mobile-enhanced for a no-JS fallback. Desktop unchanged. */
.eureka-mobile-actionbar{display:none}
@media(max-width:760px){
  body.eureka-root:has(.eureka-auth-shell.eureka-mobile-enhanced){
    height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced{
    position:relative;display:block;isolation:isolate;
    height:100vh;height:100dvh;min-height:0;overflow:hidden;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .login-visual{
    position:absolute;inset:0;z-index:3;order:0;
    display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;
    min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;
    padding:max(28px,env(safe-area-inset-top)) 24px calc(205px + env(safe-area-inset-bottom));
    gap:24px;
    transform:translate3d(0,0,0);
    transition:none;
    will-change:transform;
    -webkit-overflow-scrolling:touch;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-ready .login-visual{
    transition:transform .62s cubic-bezier(.2,.78,.23,1);
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open .login-visual{
    transform:translate3d(0,-102%,0);pointer-events:none;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-login-logo{width:180px;max-width:100%}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-landing-carousel{
    align-self:center;max-width:590px;width:100%;min-width:0;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-invite-carousel{align-self:center}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-landing-footer{
    align-self:end;width:100%;padding-bottom:2px;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .login-card-wrap{
    position:absolute;inset:0;z-index:1;order:0;
    display:block;min-width:0;min-height:0;height:100%;width:100%;
    padding:0!important;overflow-y:auto;overscroll-behavior:contain;
    background:#f6f7fb;-webkit-overflow-scrolling:touch;
  }
  /* Alpha 37: bring bottom navigation links closer to the fixed CTA without overlapping it. */
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .login-card-wrap .eureka-auth-card{
    display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
    width:100%;max-width:none;min-height:100dvh!important;height:auto;max-height:none;
    border:0!important;box-shadow:none!important;border-radius:0!important;
    padding:clamp(28px,6vw,40px) clamp(20px,6vw,34px) calc(96px + env(safe-area-inset-bottom))!important;
    margin:0;overflow:visible;scrollbar-gutter:auto;
  }
  /* Mobile forms do not inherit desktop's vertically centered body. */
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-view-login .eureka-form{
    margin:0!important;flex:0 0 auto;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-choice,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-info,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-recovery-role,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-recovery-detail,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-resend-body{
    margin-top:0!important;margin-bottom:0!important;flex:0 0 auto;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-choice{
    align-content:start;align-self:stretch;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-card > .eureka-auth-switch,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-card > .eureka-auth-meta{
    margin-top:auto!important;padding-top:24px!important;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced [data-eureka-join-form]:not([hidden]){
    display:flex;flex-direction:column;flex:1 0 auto;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced [data-eureka-join-form][hidden]{display:none!important}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced [data-eureka-join-form] > .eureka-form{flex:0 0 auto}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced [data-eureka-join-form] > .eureka-auth-meta{
    margin-top:auto!important;padding-top:24px!important;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-card .eureka-auth-tabs{margin-top:0}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-actionbar:not([hidden]){
    position:absolute;bottom:0;left:0;right:0;z-index:5;
    display:flex;flex-direction:column;gap:12px;
    padding:14px clamp(20px,6vw,34px) calc(14px + env(safe-area-inset-bottom));
    background:#f7f8fb;border-top:1px solid #e4e9f3;
    box-shadow:0 -8px 24px rgba(20,29,50,.05);
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced:not(.eureka-mobile-form-open) .eureka-mobile-actionbar{
    background:#171a2b;border-top-color:transparent;box-shadow:none;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-actionbar-row{
    display:flex;gap:10px;align-items:stretch;width:100%;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-actionbar-row .btn{
    flex:1 1 0;display:flex;align-items:center;justify-content:center;
    min-height:55px;width:100%;min-width:0;margin:0;
    border-radius:8px;font-size:15px;font-weight:650;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-actionbar-back:not([hidden]){
    background:white;color:#263553;border:1px solid #d6dfed;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-actionbar-alternative:not([hidden]){
    display:inline-flex;align-items:center;justify-content:center;gap:11px;
    align-self:stretch;width:100%;min-height:55px;background:none;border:0;border-radius:8px;
    padding:12px 16px;color:#64748b;font-size:15px;font-weight:650;text-align:center;cursor:pointer;
  }
  /* Welcome: two equally important full-width CTA tiles, white and outline. */
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced:not(.eureka-mobile-form-open) .eureka-mobile-actionbar-row{order:0}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced:not(.eureka-mobile-form-open) .eureka-mobile-actionbar-alternative{
    order:1;color:#fff;border:1.5px solid rgba(255,255,255,.85);background:transparent;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced:not(.eureka-mobile-form-open) .eureka-mobile-actionbar-alternative:hover{
    background:rgba(255,255,255,.09);border-color:#fff;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced:not(.eureka-mobile-form-open) .eureka-mobile-actionbar-main{
    color:#228bd0;background:#fff;border:1px solid #fff;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced:not(.eureka-mobile-form-open) .eureka-mobile-actionbar-main:hover{
    color:#146eaf;background:#f0f7ff;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-action-icon{
    display:inline-flex;align-items:center;justify-content:center;flex:0 0 19px;
    width:19px;height:19px;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-action-icon svg{width:100%;height:100%;display:block}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-links{
    display:flex;align-items:center;justify-content:space-between;gap:15px;
    width:100%;margin-top:auto;padding-top:22px;min-height:48px;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-links > .eureka-auth-switch{
    margin:0!important;padding:0!important;flex:0 1 auto;width:auto;text-align:right;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-links > .eureka-mobile-escape{
    display:inline-flex;align-items:center;flex:0 0 auto;margin:0;padding:0;
    color:#677892;background:transparent;border:0;font-size:13px;font-weight:500;cursor:pointer;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-links > .eureka-mobile-escape:hover{color:#344a9d}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-links:not(.eureka-mobile-links--two){justify-content:center}
  /* Role selector already has a welcome-screen exit. Hide duplicated "Powrót" link. */
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-view-choose-registration > .eureka-auth-switch,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-view-student-registration > .eureka-auth-switch{display:none!important}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-actionbar [hidden]{display:none!important}
  /* The fixed bottom controls invoke the existing source buttons; never render two calls to action. */
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-has-actions.eureka-mobile-form-open
  .eureka-wizard-step:not([hidden]) > .eureka-wizard-actions,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-has-actions.eureka-mobile-form-open
  .eureka-invite-login-actions,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-has-actions.eureka-mobile-form-open
  .eureka-auth-card > .eureka-form > .eureka-submit,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-has-actions.eureka-mobile-form-open
  .eureka-auth-card > .eureka-form > .eureka-login-submit{
    display:none!important;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-has-actions.eureka-mobile-form-open
  .eureka-auth-card > .eureka-form > .eureka-invite-login-actions{display:none!important}
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-has-actions.eureka-mobile-form-open
  .eureka-auth-card .eureka-recovery-detail:not([hidden]) > form > .eureka-submit,
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-has-actions.eureka-mobile-form-open
  .eureka-auth-card .eureka-auth-resend-body > form > .eureka-submit{display:none!important}
  /* The step-three exit stays in the card, as in the desktop flow. */
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-card .eureka-auth-meta{margin-top:24px}
}
@media(max-width:760px) and (max-height:600px){
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .login-visual{gap:14px}
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-landing-carousel h1{font-size:clamp(22px,5vw,28px)}
}
@media(prefers-reduced-motion:reduce){
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .login-visual{transition:none!important;will-change:auto}
}
/* Mobile only: explicit exit from login to its welcome layer. */
.eureka-mobile-escape{display:none}
@media(max-width:760px){
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open
 .eureka-auth-view-login > .eureka-mobile-escape,
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open
 .eureka-auth-view-forgot > .eureka-mobile-escape,
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open
 .eureka-auth-view-choose-registration > .eureka-mobile-escape,
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open
 .eureka-auth-view-student-registration > .eureka-mobile-escape{
   display:block;align-self:flex-start;margin:24px 0 0;padding:2px 0;
   border:0;background:transparent;color:#677892;
   font-size:13px;font-weight:500;line-height:1.5;cursor:pointer;
 }
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-escape:hover{color:#344a9d}
 /* The role chooser has no fixed bottom CTA; do not reserve space for a
    nonexistent 96px action bar in this view. */
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .login-card-wrap .eureka-auth-card.eureka-auth-view-choose-registration{
   padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;
 }
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open .eureka-auth-view-choose-registration > .eureka-mobile-escape{
   margin-top:auto!important;margin-bottom:0!important;align-self:center;padding:2px 0;
 }
 /* Student information (after choosing "Uczeń") has no bottom CTA either.
    Match the role chooser: exit stays 18px above the actual viewport bottom. */
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .login-card-wrap .eureka-auth-card.eureka-auth-view-student-registration{
   padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;
 }
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open .eureka-auth-view-student-registration > .eureka-mobile-escape{
   margin-top:auto!important;margin-bottom:0!important;align-self:center;padding:2px 0;
 }
}
/* Before the footer JS runs, do not briefly paint the opposite screen.
   The preload class is removed by auth-mobile.js (or on load if JS fails). */
@media(max-width:760px){
 html.eureka-mobile-auth-preload .eureka-root .eureka-auth-shell:not(.eureka-mobile-enhanced){
   display:block;height:100vh;height:100dvh;overflow:hidden;min-height:0;
 }
 html.eureka-mobile-auth-preload:not(.eureka-mobile-auth-preload-form) .eureka-root
 .eureka-auth-shell:not(.eureka-mobile-enhanced) .login-card-wrap{display:none!important}
 html.eureka-mobile-auth-preload:not(.eureka-mobile-auth-preload-form) .eureka-root
 .eureka-auth-shell:not(.eureka-mobile-enhanced) .login-visual{
   height:100%;min-height:100%;padding:28px 24px 110px;
 }
 html.eureka-mobile-auth-preload-form .eureka-root
 .eureka-auth-shell:not(.eureka-mobile-enhanced) .login-visual{display:none!important}
 html.eureka-mobile-auth-preload-form .eureka-root
 .eureka-auth-shell:not(.eureka-mobile-enhanced) .login-card-wrap{
   order:0;min-height:100%;padding:24px 16px;
 }
}


/* Shared inline notice geometry remains for errors and other auth views. */
.eureka-root .eureka-notice,
.eureka-root .eureka-auth-feedback{
  box-shadow:none;
  border-radius:0;
}

/* The right-pane spinner belongs only to an already revealed form. When the
   mobile welcome is still covering the form, keep its navy panel on top for
   the full AJAX navigation; never show the loader or expose the old form. */
@media(max-width:760px){
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open .login-card-wrap:has(.eureka-auth-card[aria-busy="true"]){z-index:7}
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced:not(.eureka-mobile-form-open) .eureka-auth-loading{display:none!important}
 .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-auth-loading{
   position:fixed;inset:0;width:100vw;height:100dvh;z-index:999;
   border-radius:0;background:rgba(247,248,251,.96);
 }
}

/* Alpha 32: mobile wizard actions use desktop chevrons in the same order
   and orientation: left chevron BEFORE Wstecz, right AFTER Dalej. */
@media(max-width:760px){
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-actionbar .eureka-button-chevron{
    display:inline-block;width:17px;height:17px;flex:0 0 17px;vertical-align:middle;
  }
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced .eureka-mobile-actionbar .eureka-button-chevron-left{
    transform:rotate(180deg);
  }
}

/* Alpha 33: readable login/registration controls, without taller cards. */
.eureka-root .eureka-auth-card .eureka-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),textarea,select){
  font-size:16px;font-weight:500;line-height:1.35;padding-top:6px;padding-bottom:6px;
}
.eureka-root .eureka-auth-card .eureka-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),textarea)::placeholder{
  font-size:16px;font-weight:400;
}

/* Alpha 34 — the pupil profile now comes before credentials. On steps 2–3,
   a small live avatar overlaps the group avatar and a +name completes its header. */
.eureka-root .eureka-invite-avatar-stack{
  position:relative;display:block;flex:0 0 53px;width:53px;height:53px;
  min-width:53px;align-self:flex-start;
}
.eureka-root .eureka-invite-avatar-stack>.eureka-invite-avatar{
  display:inline-flex;width:53px;height:53px;min-width:53px;min-height:53px;
  aspect-ratio:1;border-radius:5px;
}
.eureka-root .eureka-invite-pupil-avatar{
  display:inline-flex;align-items:center;justify-content:center;
  position:absolute;z-index:1;top:42px;left:36px;
  width:28px;height:28px;min-width:28px;aspect-ratio:1;
  background:var(--avatar-bg,#e9eeff);border:2px solid #fff;border-radius:50%;
  box-shadow:0 1px 5px rgba(25,39,68,.15);font-size:15px;line-height:1;
}
.eureka-root .eureka-invite-pupil-avatar[hidden],
.eureka-root .eureka-invite-pupil-label[hidden]{display:none!important}
.eureka-root .eureka-invite-pupil-label{
  display:flex;align-items:baseline;gap:4px;width:100%;min-width:0;
  overflow:hidden;white-space:nowrap;
  font-size:12px;line-height:22px;font-weight:750;
  margin-top:-4px;margin-left:-1px;color:#4e59d8;
}
.eureka-root .eureka-invite-pupil-plus{color:#d63240;flex:0 0 auto}
.eureka-root .eureka-invite-pupil-name{
  flex:1 1 auto;color:inherit;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;
}
.eureka-root .eureka-student-wizard .eureka-wizard-step[data-eureka-student-step="1"]{
  padding-top:0;
}
/* There is no redundant "Twój profil" legend between the live preview and the field. */
.eureka-root .eureka-student-wizard .eureka-student-avatar-hero[data-eureka-avatar-hero]{margin-bottom:16px}


/* Alpha 39 — unobtrusive live limit beside the pupil's display-name label. */
.eureka-root .eureka-register-field-heading .eureka-field-character-count{
  margin-left:auto;color:#77849b;font-size:11px;font-weight:500;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}

/* Alpha 41 — shared counters and inline validity marks across both registrations. */
.eureka-root .eureka-auth-card .eureka-form .eureka-register-field-heading .eureka-field-character-count,
.eureka-root .eureka-auth-card .eureka-form .eureka-counted-field .eureka-field-character-count{
  margin-left:auto;font-size:11px;font-weight:400;line-height:1.3;
  color:#98a3b6;font-variant-numeric:tabular-nums;white-space:nowrap;
  transition:color .16s ease;
}
.eureka-root .eureka-auth-card .eureka-form .eureka-field-character-count.is-valid{color:#1b93d2}
.eureka-root .eureka-auth-card .eureka-form .eureka-field-character-count.is-warning{color:#d63240}
.eureka-root .eureka-auth-card .eureka-form .eureka-field-character-count.is-short{color:#98a3b6}
.eureka-root .eureka-counted-field>.eureka-simple-field-heading,
.eureka-root .register-field>.eureka-simple-field-heading,
.eureka-root .eureka-register-field-heading{display:flex!important;align-items:center;width:100%;gap:4px;flex-wrap:nowrap}
.eureka-root .eureka-simple-input-wrap{display:block;width:100%;min-width:0}
.eureka-root .eureka-simple-input-wrap>input{display:block;width:100%}
.eureka-root .eureka-validity-mark{
  margin-left:auto;display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;flex:0 0 18px;color:#1b93d2;opacity:0;pointer-events:none;
  transition:opacity .16s ease;
}
.eureka-root .eureka-validity-mark.is-valid{opacity:1}
.eureka-root .eureka-validity-mark svg{display:block;width:15px;height:15px}
/* The group card already establishes hierarchy: separate it by space, not a line. */
.eureka-root .eureka-auth-view-join .eureka-invite-identity{
  border-bottom:0;margin-bottom:13px;padding-bottom:11px;
}

/* Alpha 50 — role-aware invitations preserve the public visual without offering duplicate registration. */
.eureka-root .eureka-auth-view-join .eureka-invite-identity--owner{
  color:inherit;text-decoration:none;border-radius:7px;cursor:pointer;
  transition:background-color .2s ease;
}
.eureka-root .eureka-auth-view-join .eureka-invite-identity--owner:hover{
  background:linear-gradient(90deg,#fff 0%,#f6f7fa 50%,#fff 100%);
}
.eureka-root .eureka-auth-view-join .eureka-invite-identity--owner:focus-visible{
  outline:2px solid #1b93d2;outline-offset:3px;
}
.eureka-root .eureka-invite-auth-actions{margin-top:18px}
.eureka-root .eureka-invite-auth-actions .eureka-form{margin:0!important;width:100%}
.eureka-root .eureka-invite-auth-actions .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:48px;width:100%;margin:0;font-weight:650;
}
.eureka-root .eureka-invite-state{
  margin:17px 0 0;padding:14px 16px;background:#edf4ff;
  border:0;border-left:4px solid #669cff;border-radius:0;
  color:#345b91;font-size:14px;font-weight:500;line-height:1.55;
}
.eureka-root .eureka-invite-state--error{
  background:#fff1f3;border-left-color:#d63240;color:#aa3747;
}
.eureka-root .eureka-auth-view-join .eureka-invite-auth-actions + .eureka-auth-switch{margin-top:12px}

/* Alpha 69 — password reset shares the registration field/tooltip/validation UI. */
.eureka-root .eureka-auth-view-reset-password .eureka-form{
  display:flex;flex-direction:column;gap:17px;width:100%;min-width:0;
}
.eureka-root .eureka-auth-view-reset-password .eureka-auth-meta{
  width:100%;margin:2px 0 0;padding:0;
}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-password-submit{
  display:flex;align-items:center;justify-content:center;gap:9px;
  width:100%;min-height:50px!important;margin:0;
}
.eureka-root .eureka-auth-view-reset-password .eureka-register-field-heading label{font-weight:600}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-password-error{
  color:#a72d3d;font-size:13px;line-height:1.45;font-weight:400;
  margin:0;padding:0;
}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-password-error[hidden]{display:none!important}

/* Alpha 70 — auth success/info messages always use legible regular text. */
.eureka-root .eureka-auth-feedback--info{font-weight:400!important}

/* Shared reset form: two balanced actions, the submitted action keeps the primary state. */
.eureka-root .eureka-auth-view-reset-password .eureka-reset-actions{display:flex;align-items:center;gap:12px;width:100%;margin-top:8px}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-actions>.btn{flex:1 1 0;width:auto!important;margin:0!important;min-height:46px;justify-content:center;display:inline-flex;align-items:center;gap:8px}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-identity{justify-content:center;text-align:center;gap:12px;margin:8px auto 20px}
@media(max-width:470px){.eureka-root .eureka-auth-view-reset-password .eureka-reset-actions{flex-direction:column}.eureka-root .eureka-auth-view-reset-password .eureka-reset-actions>.btn{width:100%!important;flex:auto}}

/* Single-primary reset CTA, identity and required note below it. */
.eureka-root .eureka-auth-view-reset-password .eureka-reset-identity{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:12px;width:100%;margin:8px 0 20px}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-identity strong{font-weight:700}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-actions{margin:8px 0 0!important;width:100%}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-actions .eureka-reset-password-submit{flex:1 1 100%;width:100%!important;max-width:none!important}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-password-submit .eureka-btn-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;line-height:0}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-password-submit .eureka-btn-icon svg{display:block;width:18px;height:18px}
.eureka-root .eureka-auth-view-reset-password .eureka-reset-password-submit:disabled{opacity:.5;cursor:not-allowed}
.eureka-root .eureka-auth-view-reset-password .eureka-auth-meta{display:flex;justify-content:flex-end;padding:0!important;margin:0!important}
.eureka-root .eureka-auth-view-reset-password .eureka-auth-required-note{margin:0;text-align:right}

/* Alpha 138 — email activation shares the registration/login shell and card.
   These are inner-card refinements only; the split layout remains the single source of truth. */
.eureka-root .eureka-auth-view-verification{justify-content:center}
.eureka-root .eureka-auth-view-verification .eureka-verification-summary{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:0;width:100%;min-width:0;padding:10px 0;text-align:center;
}
.eureka-root .eureka-verification-symbol{
  display:inline-flex;align-items:center;justify-content:center;
  width:66px;height:66px;flex:0 0 66px;margin:0 0 24px;
  border-radius:50%;background:#edf3ff;color:#4e59d8;
}
.eureka-root .eureka-verification-symbol svg{width:32px;height:32px;display:block}
.eureka-root .eureka-verification-summary.is-error .eureka-verification-symbol{background:#fff2f3;color:#b44958}
.eureka-root .eureka-verification-summary h2{
  margin:0 0 12px;color:#142344;font-size:24px;font-weight:700;
  line-height:1.3;letter-spacing:-.018em;text-wrap:balance;
}
.eureka-root .eureka-verification-summary p{
  max-width:350px;margin:0 0 28px;color:#485771;
  font-size:15px;font-weight:400;line-height:1.65;
}
.eureka-root .eureka-verification-action{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  width:100%;min-height:48px;margin:0;font-size:14px;font-weight:650;
  text-decoration:none;
}
/* Keep the confirmation POST button as wide as the existing verification link. */
.eureka-root .eureka-verification-summary > .eureka-form{width:100%;margin:0;padding:0} 
@media(max-width:760px){
  .eureka-root .eureka-auth-view-verification{min-height:340px}
  .eureka-root .eureka-verification-summary h2{font-size:22px}
  .eureka-root .eureka-verification-symbol{margin-bottom:19px}
}

/* Alpha 149 — reset-link error uses the uploaded symbols and a compact 3-zone card. */
/* The regular reset form stays at its original size; only the invalid-link state shrinks. */
.eureka-root .eureka-auth-card.eureka-auth-view-reset-password:has(.eureka-reset-invalid){
  min-height:0!important;
  height:auto;
}
.eureka-root .eureka-reset-invalid{
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  justify-items:center;align-items:stretch;
  width:100%;min-height:272px;gap:22px;
  padding:4px 0 0;margin:0;text-align:center;
}
.eureka-root .eureka-reset-invalid>.eureka-auth-btn-icon{
  display:block;justify-self:center;align-self:start;
  width:54px;height:54px;flex:none;color:#d03d4f;fill:currentColor;
}
.eureka-root .eureka-reset-invalid-copy{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  align-self:stretch;min-width:0;gap:10px;width:100%;
}
.eureka-root .eureka-reset-invalid-copy h2{
  margin:0;color:#152542;font-size:18px;line-height:1.35;font-weight:700;letter-spacing:0;
}
.eureka-root .eureka-reset-invalid-copy p{
  margin:0;max-width:390px;font-size:15px;line-height:1.55;color:#42516c;font-weight:400;
}
.eureka-root .eureka-reset-invalid .eureka-reset-invalid-action{
  display:inline-flex;justify-self:stretch;align-self:end;
  align-items:center;justify-content:center;gap:10px;
  width:100%;min-width:0;max-width:none;min-height:50px;
  margin:0;padding:12px 18px;font-weight:600;
}
.eureka-root .eureka-reset-invalid .eureka-reset-invalid-action>.eureka-auth-btn-icon{
  display:block;width:19px;height:19px;flex:0 0 19px;fill:currentColor;
}
@media(max-width:470px){
  .eureka-root .eureka-reset-invalid{min-height:250px;gap:18px}
  .eureka-root .eureka-reset-invalid-copy h2{font-size:17px}
}
/* Alpha 150 — forgot-password role/back copy, spacing and neutral tab hover. */
.eureka-root .eureka-auth-view-forgot .eureka-recovery-detail[data-eureka-reset-detail="teacher"]{width:100%;margin-top:auto;margin-bottom:auto}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-detail[data-eureka-reset-detail="teacher"] .eureka-form{display:flex;flex-direction:column;gap:16px;width:100%;max-width:none;margin:0 auto!important}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-detail[data-eureka-reset-detail="teacher"] .register-field{width:100%;margin:0 auto}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-detail[data-eureka-reset-detail="teacher"] .eureka-email-check{min-height:0;margin-top:-4px}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-detail[data-eureka-reset-detail="teacher"] .eureka-submit{margin-top:12px}

/* Alpha151: registration informational copy uses regular weight, never light. */
.eureka-root .eureka-auth-info,.eureka-root .eureka-auth-info p{font-weight:400!important}

/* Beta 50 — invitation registration actions share the same icon/text rhythm. */
.eureka-root .eureka-auth-view-join .eureka-invite-actions .btn,
.eureka-root .eureka-auth-view-join .eureka-student-wizard .eureka-wizard-actions .btn.eureka-submit {
  display:inline-flex;align-items:center;justify-content:center;gap:11px;
}
.eureka-root .eureka-auth-view-join .eureka-invite-actions .btn .eureka-auth-btn-icon,
.eureka-root .eureka-auth-view-join .eureka-student-wizard .btn.eureka-submit .eureka-auth-btn-icon {
  width:18px;height:18px;min-width:18px;flex:0 0 18px;margin:0;
}
.eureka-root .eureka-auth-shell .eureka-mobile-actionbar-main:has(.eureka-mobile-action-icon) {
  gap:11px;
}

/* Beta 84 — login password reveal and native WordPress remember-me option. */
.eureka-root .eureka-auth-view-login .eureka-login-password-field{width:100%;min-width:0}
.eureka-root .eureka-auth-view-login .eureka-login-password-field>.eureka-simple-field-heading{
  display:block;font-size:13px;font-weight:600;color:#263653;line-height:1.4
}
.eureka-root .eureka-auth-view-login .eureka-login-password-field>.eureka-register-input-wrap{
  position:relative;display:block;width:100%;min-width:0
}
.eureka-root .eureka-auth-view-login .eureka-login-password-field input[type="password"],
.eureka-root .eureka-auth-view-login .eureka-login-password-field input[type="text"]{padding-right:49px}
.eureka-root .eureka-auth-card .eureka-form .eureka-login-remember{
  display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;
  width:max-content;max-width:100%;margin:0;cursor:pointer;
  color:#34435e;font-size:13px;line-height:1.4;font-weight:500
}
.eureka-root .eureka-auth-card .eureka-form .eureka-login-remember input[type="checkbox"]{
  appearance:auto;display:block;flex:0 0 17px;width:17px;min-width:17px;max-width:17px;
  height:17px;min-height:17px;max-height:17px;margin:0;padding:0;border:0;border-radius:3px;
  accent-color:#1b93d2;cursor:pointer
}
.eureka-root .eureka-auth-card .eureka-form .eureka-login-remember>span{
  display:inline;font-size:13px;font-weight:500;margin:0;white-space:nowrap
}
.eureka-root .eureka-auth-card .eureka-form .eureka-login-remember:has(input:focus-visible){outline:2px solid #1b93d2;outline-offset:3px;border-radius:4px}

/* Beta110 — standard two-button safety confirmation for remembered sign-in. */
.eureka-root .eureka-remember-overlay[hidden]{display:none!important}
body.eureka-remember-open{overflow:hidden}
.eureka-root .eureka-remember-overlay{position:fixed;inset:0;z-index:120050;background:rgba(9,17,35,.66);display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:18px;overflow:auto}
.eureka-root .eureka-remember-dialog{position:relative;width:min(100%,470px);box-sizing:border-box;border-radius:15px;background:#fff;box-shadow:0 26px 80px rgba(6,17,35,.3);padding:31px 29px 27px;display:flex;align-items:center;flex-direction:column;text-align:center;color:#172741}
.eureka-root .eureka-remember-info{width:58px;height:58px;border-radius:14px;background:#e7f5fc;color:#1b93d2;display:grid;place-items:center;margin:0 0 15px}
.eureka-root .eureka-remember-info svg{width:29px;height:29px}
.eureka-root .eureka-remember-dialog h2{margin:0 0 12px!important;font-size:21px!important;line-height:1.3!important;font-weight:750!important;color:#142641!important}
.eureka-root .eureka-remember-dialog p{font-size:14px;line-height:1.65;color:#465875;margin:0 0 24px!important;max-width:365px;font-weight:400}
.eureka-root .eureka-remember-close{position:absolute;right:13px;top:13px;display:grid;place-items:center;width:34px;height:34px;background:#fff;border:1px solid #dfe6ef;border-radius:7px;color:#6b7890;cursor:pointer;font-size:22px;line-height:1}
.eureka-root .eureka-remember-close:hover{background:#f3f6fa}
.eureka-root .eureka-remember-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.eureka-root .eureka-remember-actions .btn{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:10px 9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:normal;text-align:center;font-weight:700;font-size:12px;line-height:1.25}
.eureka-root .eureka-remember-actions .btn svg{width:16px;height:16px;flex:none;display:block}
.eureka-root .eureka-remember-actions .eureka-remember-reject{background:#1b93d2;color:#fff;border-color:#1b93d2}
@media(max-width:430px){.eureka-root .eureka-remember-dialog{padding:28px 17px 20px}.eureka-root .eureka-remember-dialog p{font-size:13px}.eureka-root .eureka-remember-actions{gap:8px}.eureka-root .eureka-remember-actions .btn{font-size:11px;padding:9px 6px}}

/* beta.235 — teacher registration keeps the logo in the first row. Only
   rotating promotional text is replaced with the video (the footer stays).
   Let the player fill the left column instead of the old carousel width. */
@media (min-width:761px) {
  .eureka-root .eureka-auth-shell.eureka-auth-teacher-registration .login-visual {
    /* Explicitly stretch the desktop content column. Without this, the grid's
       implicit auto track takes its intrinsic width from the footer, so the
       iframe's width:100% resolves against a narrow (~400px) column. */
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr) auto;
  }
  .eureka-root .eureka-auth-shell.eureka-auth-teacher-registration .eureka-register-video {
    justify-self:center;
    align-self:center;
    width:100%;
    max-width:none; /* Full-width fallback for browsers without dvh support. */
    max-width:min(100%, calc((100dvh - 280px) * 1.77778));
    margin:0 auto;
  }
  .eureka-root .eureka-auth-shell .eureka-register-video-frame {
    width:100%;
    aspect-ratio:16 / 9;
    border-radius:8px;
    background:#0d1224;
    overflow:hidden;
  }
  .eureka-root .eureka-auth-shell .eureka-register-video-frame iframe {
    display:block;
    width:100%;
    height:100%;
    border:0;
  }
}
@media (max-width:760px) {
  .eureka-root .eureka-auth-shell .eureka-register-video {display:none!important;}
}

/* beta.249: guest logo remains a genuine, keyboard-accessible link on every auth view. */
.eureka-root .eureka-auth-shell .eureka-auth-home{
  display:inline-flex;align-self:start;justify-self:start;width:max-content;max-width:100%;
  text-decoration:none;border-radius:4px;
}
.eureka-root .eureka-auth-shell .eureka-auth-home:focus-visible{outline:2px solid #49b9ed;outline-offset:5px}
.eureka-root .eureka-auth-shell .eureka-auth-home .eureka-login-logo{display:block}

/* beta.283 — teacher registration: the same instructional film also fits the
   empty space under the registration key, exclusively on mobile wizard step 1.
   Both desktop and non-teacher auth screens remain unchanged. */
.eureka-root .eureka-auth-view-register .eureka-register-mobile-video{display:none!important}
@media(max-width:760px){
 .eureka-root .eureka-auth-view-register .eureka-wizard-step[data-eureka-wizard-step="1"] .eureka-register-mobile-video{
   display:block!important;width:100%;min-width:0;max-width:100%;margin:18px 0 8px;
 }
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-video-frame{
   width:100%;aspect-ratio:16/9;position:relative;overflow:hidden;
   border:1px solid #dce4ee;border-radius:8px;background:#f6f8fb;box-sizing:border-box;
 }
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-video-frame iframe[src]{
   width:100%;height:100%;display:block;border:0;
 }
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-video-frame iframe:not([src]){display:none}
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent{
   position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
   gap:6px;padding:10px 14px;text-align:center;box-sizing:border-box;color:#263851;background:#f6f8fb;
 }
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent[hidden]{display:none!important}
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent>.dashicons{
   width:26px;height:26px;font-size:19px;line-height:26px;color:#1b93d2;
 }
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent strong{font-size:13px;line-height:1.2}
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent p{
   margin:0;max-width:320px;color:#56647b;font-size:11px;line-height:1.35;
 }
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent a[data-eureka-cookie-trigger]{
   display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:4px 12px;
   background:#eaf6fd;border:1px solid #a7d8f2;border-radius:6px;
   color:#127caf;text-decoration:none;font-size:12px;font-weight:700;box-sizing:border-box;
 }
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent a:hover{background:#d9effb}
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent .eureka-cmp-notice{
   font-size:10px;line-height:1.25;color:#ae3048;margin:0;
 }
}
@media(max-width:360px){
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent{gap:4px;padding:7px 9px}
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent strong{font-size:12px}
 .eureka-root .eureka-auth-view-register .eureka-register-mobile-consent p{font-size:10px}
}

/* beta.366 — authentication and password-recovery refinements. */
/* Match the remember-me control border to the adjacent login inputs. */
.eureka-root .eureka-auth-card .eureka-form .eureka-login-remember input[type="checkbox"]{
  -webkit-appearance:none;appearance:none;
  box-sizing:border-box;border:1px solid #d5deed;
  border-radius:3px;background-color:#fff;box-shadow:none;
  transition:border-color .15s ease,background-color .15s ease;
}
.eureka-root .eureka-auth-card .eureka-form .eureka-login-remember input[type="checkbox"]:hover{border-color:#9eb7d2}
.eureka-root .eureka-auth-card .eureka-form .eureka-login-remember input[type="checkbox"]:checked{
  border-color:#1b93d2;background-color:#1b93d2;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.6 3.5 7.4-8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size:100% 100%;background-repeat:no-repeat;background-position:center;
}
.eureka-root .eureka-auth-card .eureka-form .eureka-login-remember input[type="checkbox"]:focus-visible{
  outline:2px solid #1b93d2;outline-offset:3px;
}
/* Keep role-selection hover consistent on registration and recovery. */
.eureka-root .eureka-auth-view-forgot .eureka-auth-choice .btn:first-child:is(:hover,:focus-visible),
.eureka-root .eureka-auth-view-choose-registration .eureka-auth-choice .btn:first-child:is(:hover,:focus-visible){
  background:#fff9eb!important;border-color:#d9ab43!important;color:#8e6410!important;
  box-shadow:0 5px 18px rgba(157,111,21,.11);
}
.eureka-root .eureka-auth-view-forgot .eureka-auth-choice .btn:last-child:is(:hover,:focus-visible),
.eureka-root .eureka-auth-view-choose-registration .eureka-auth-choice .btn:last-child:is(:hover,:focus-visible){
  background:#f1f8ff!important;border-color:#8bb9e7!important;color:#245d95!important;
  box-shadow:0 5px 18px rgba(39,104,166,.10);
}
.eureka-root .eureka-auth-view-forgot .eureka-auth-choice .btn,
.eureka-root .eureka-auth-view-choose-registration .eureka-auth-choice .btn{
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
/* The recovery title and its subtitle stay together; tiles are still centred. */
.eureka-root .eureka-auth-view-forgot .eureka-recovery-subtitle{
  margin:0 0 14px;color:#79869c;font-size:16px;line-height:1.5;font-weight:400;
}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-subtitle[hidden]{display:none!important}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-role .eureka-auth-choice{margin-top:0}
.eureka-root .eureka-auth-view-forgot .eureka-auth-heading:has(~ .eureka-recovery-role:not([hidden])){margin-bottom:8px!important}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-explanation{
  margin:0 0 23px;color:#40506a;font-size:14px;line-height:1.65;font-weight:400;
}
/* No blank spacer after a successfully verified e-mail; errors remain visible. */
.eureka-root .eureka-auth-view-forgot .eureka-email-check[hidden]{display:none!important}
.eureka-root .eureka-auth-view-forgot .eureka-email-check:not([hidden]){color:#a32c39;font-size:12px;line-height:1.5}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-detail[data-eureka-reset-detail="teacher"] .eureka-form{gap:13px}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-detail[data-eureka-reset-detail="teacher"] .eureka-submit{margin-top:12px}
@media(max-width:470px){
  .eureka-root .eureka-auth-view-forgot .eureka-recovery-explanation{font-size:13px;line-height:1.6;margin-bottom:17px}
  .eureka-root .eureka-auth-view-forgot .eureka-recovery-subtitle{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .eureka-root .eureka-auth-view-forgot .eureka-auth-choice .btn,
  .eureka-root .eureka-auth-view-choose-registration .eureka-auth-choice .btn{transition:none}
}

/* beta.367 — no phantom mobile actionbar space on link-only auth views.
   The mobile controller toggles eureka-mobile-has-actions from the actual
   visible primary CTA, including changes inside password recovery. */
@media (max-width:760px){
  .eureka-root .eureka-auth-shell.eureka-mobile-enhanced.eureka-mobile-form-open:not(.eureka-mobile-has-actions)
  .login-card-wrap .eureka-auth-card{
    padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;
  }
}

/* beta.368 — password recovery confirmation with contextual public support. */
.eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation{flex:0 0 auto;min-width:0}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation h2{
  margin:0 0 21px!important;color:#142344;font-size:21px;font-weight:700;line-height:1.3;
}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation-copy{display:flex;flex-direction:column;gap:13px}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation-copy p{
  margin:0;color:#40506a;font-size:14px;line-height:1.62;font-weight:400;
}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation-copy a{
  color:#188bd0;text-decoration:underline;text-underline-offset:3px;
}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation-copy a:hover{color:#126ba4}
.eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation-copy a:focus-visible{
  outline:2px solid #188bd0;outline-offset:3px;border-radius:2px;
}
@media(max-width:470px){
  .eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation-copy{gap:11px}
  .eureka-root .eureka-auth-view-forgot .eureka-recovery-confirmation-copy p{font-size:13px;line-height:1.55}
}

/* Beta 370 — navy ambient with interactive particles and pointer parallax.
   Decorative only, fully separated from white forms; no red. */
.eureka-root .eureka-auth-shell:not(.eureka-maintenance-shell) .login-visual{
  position:relative;isolation:isolate;overflow:hidden;background:#171a2b;
}
.eureka-root .eureka-auth-shell .login-visual > :not(.eureka-auth-ambient){position:relative;z-index:1}
.eureka-root .eureka-auth-shell .eureka-auth-ambient{
  position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
}
.eureka-root .eureka-auth-shell .eureka-auth-aura{
  display:block;position:absolute;border-radius:50%;pointer-events:none;
  will-change:transform;opacity:.86;
}
.eureka-root .eureka-auth-shell .eureka-auth-aura--one{
  width:clamp(320px,55vw,820px);aspect-ratio:1;top:-29%;left:-34%;
  background:radial-gradient(circle,rgba(39,88,162,.51) 0%,rgba(31,71,133,.30) 35%,rgba(23,26,43,0) 71%);
  animation:eureka-navy-orbit-one 22s ease-in-out infinite alternate;
}
.eureka-root .eureka-auth-shell .eureka-auth-aura--two{
  width:clamp(300px,51vw,760px);aspect-ratio:1;bottom:-32%;right:-38%;
  background:radial-gradient(circle,rgba(30,125,173,.37) 0%,rgba(25,88,153,.24) 38%,rgba(23,26,43,0) 71%);
  animation:eureka-navy-orbit-two 28s ease-in-out infinite alternate;
}
.eureka-root .eureka-auth-shell .eureka-auth-aura--three{
  width:clamp(240px,38vw,580px);aspect-ratio:1;top:27%;left:25%;
  background:radial-gradient(circle,rgba(78,101,190,.27) 0%,rgba(33,63,126,.15) 40%,rgba(23,26,43,0) 72%);
  animation:eureka-navy-orbit-three 31s ease-in-out infinite alternate;
}
.eureka-root .eureka-auth-shell .eureka-auth-ambient-grid{
  display:block;position:absolute;inset:0;opacity:.46;
  background-image:linear-gradient(to right,rgba(164,199,244,.035) 1px,transparent 1px),
                   linear-gradient(to bottom,rgba(164,199,244,.035) 1px,transparent 1px);
  background-size:48px 48px;
  -webkit-mask-image:linear-gradient(135deg,transparent 7%,#000 55%,transparent 100%);
  mask-image:linear-gradient(135deg,transparent 7%,#000 55%,transparent 100%);
}
.eureka-root .eureka-auth-shell .eureka-auth-ambient-stars{
  display:block;position:absolute;inset:0;opacity:.40;
  background-image:radial-gradient(circle at 14% 20%,#b6daff .8px,transparent 1.5px),
    radial-gradient(circle at 72% 16%,#b6daff .7px,transparent 1.4px),
    radial-gradient(circle at 89% 52%,#a2c9ef 1px,transparent 1.6px),
    radial-gradient(circle at 33% 66%,#a2c9ef .8px,transparent 1.4px),
    radial-gradient(circle at 67% 80%,#b6daff .7px,transparent 1.3px),
    radial-gradient(circle at 10% 91%,#b6daff .8px,transparent 1.5px);
  animation:eureka-navy-twinkle 12s ease-in-out infinite alternate;
}
@keyframes eureka-navy-orbit-one{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(9%,8%,0) scale(1.07)}}
@keyframes eureka-navy-orbit-two{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(-8%,-7%,0) scale(1.06)}}
@keyframes eureka-navy-orbit-three{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(-5%,7%,0) scale(1.1)}}
@keyframes eureka-navy-twinkle{from{opacity:.20}to{opacity:.44}}
@media(max-width:760px){
  /* The visual column appears on the welcome stage; keep motion economical on phones. */
  .eureka-root .eureka-auth-shell .eureka-auth-aura{will-change:auto}
  .eureka-root .eureka-auth-shell .eureka-auth-aura--three{display:none}
}
@media(prefers-reduced-motion:reduce){
  .eureka-root .eureka-auth-shell .eureka-auth-aura,
  .eureka-root .eureka-auth-shell .eureka-auth-ambient-stars{animation:none!important;will-change:auto!important}
}

/* Beta 370 — Canvas stars + cursor trail in the original navy visual panel. */
.eureka-root .eureka-auth-shell .eureka-auth-ambient-particles{
  position:absolute;inset:0;display:block;width:100%;height:100%;z-index:3;
  pointer-events:none;user-select:none;
}
.eureka-root .eureka-auth-shell .eureka-auth-pointer-glow{
  position:absolute;left:50%;top:50%;z-index:2;pointer-events:none;
  width:300px;height:300px;border-radius:50%;opacity:0;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle,rgba(58,132,226,.19) 0%,rgba(45,108,183,.09) 36%,transparent 70%);
  transition:opacity .35s ease;
}
.eureka-root .eureka-auth-shell .eureka-auth-pointer-glow.is-visible{opacity:1}
.eureka-root .eureka-auth-shell .eureka-auth-aura{
  translate:var(--eureka-parallax-x,0px) var(--eureka-parallax-y,0px);
  transition:translate .16s ease-out;
}
@media(prefers-reduced-motion:reduce){
  .eureka-root .eureka-auth-shell .eureka-auth-ambient-particles,
  .eureka-root .eureka-auth-shell .eureka-auth-pointer-glow{display:none!important}
  .eureka-root .eureka-auth-shell .eureka-auth-aura{translate:none!important;transition:none!important}
}

/* beta.412 — inline registration support on failed activation delivery. */
.eureka-root .eureka-auth-view-registered .eureka-registration-success a[data-eureka-reghelp-open]{
  color:#188bd0;text-decoration:underline;text-underline-offset:3px;
}
.eureka-root .eureka-auth-view-registered .eureka-registration-success a[data-eureka-reghelp-open]:hover{color:#126ba4}
.eureka-root .eureka-auth-view-registered .eureka-registration-success a[data-eureka-reghelp-open]:focus-visible{
  outline:2px solid #188bd0;outline-offset:3px;border-radius:2px;
}
