/* E5-B16.4 isolated registration layout. This file intentionally comes last. */
.teacher-auth-body{overflow-x:hidden}
.teacher-auth-shell.register-v3{width:min(1320px,calc(100% - 40px));max-width:1320px;grid-template-columns:minmax(360px,.82fr) minmax(640px,1.18fr);align-items:stretch}
.teacher-auth-brand.register-brand-v3{min-width:0;padding:42px 44px}
.teacher-auth-card.register-card-v3{width:100%;min-width:0;padding:42px 48px 46px;overflow:visible}
.teacher-auth-card.register-card-v3>*{max-width:none}
.teacher-auth-card-head-v3{width:100%;margin-bottom:26px}
.teacher-auth-card-head-v3>div{min-width:0;max-width:680px}
.teacher-auth-card-head-v3 h2{font-size:32px;line-height:1.08}
.teacher-auth-card-head-v3 p{max-width:620px}

/* Outer form is always one vertical flow. */
.teacher-auth-form.teacher-register-grid-v3{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;width:100%;min-width:0}
.teacher-auth-form.teacher-register-grid-v3>input[type=hidden]{display:none}
.teacher-auth-form.teacher-register-grid-v3>.teacher-register-section,.teacher-auth-form.teacher-register-grid-v3>.register-captcha-row,.teacher-auth-form.teacher-register-grid-v3>.register-submit-row{grid-column:1/-1!important;width:100%;min-width:0}

/* Each section owns its own field grid. */
.teacher-register-section{width:100%;min-width:0;margin-top:24px;padding-top:24px}
.teacher-register-section:first-of-type{margin-top:0;padding-top:0}
.teacher-register-section-head{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;column-gap:11px;margin-bottom:16px;min-width:0}
.teacher-register-section-head b{width:30px;height:30px}
.teacher-register-section-head strong{font-size:14px;min-width:0}
.teacher-register-section-head span{margin-left:0;font-size:10px;white-space:nowrap}
.teacher-register-section>.teacher-register-grid-v3{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 20px!important;width:100%;min-width:0}
.teacher-register-section>.teacher-register-grid-v3>.span-2{grid-column:1/-1!important}
.teacher-register-section label,.teacher-register-section fieldset{display:block;min-width:0;width:100%}
.teacher-register-section label>span:first-child{font-size:11px;line-height:1.35}
.teacher-register-section input,.teacher-register-section select{display:block;width:100%!important;max-width:100%;min-width:0;box-sizing:border-box!important;min-height:50px;padding:11px 14px;border-radius:13px}
.teacher-register-section input::placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.teacher-register-section small.field-help{max-width:100%;font-size:10px;line-height:1.5}

/* Grade level picker should look like three clear choices, not nested bubbles. */
.teacher-level-picker.register-level-v3{display:block!important;width:100%;min-width:0;margin:0;padding:15px 16px 16px;box-sizing:border-box;border-radius:15px}
.teacher-level-picker.register-level-v3 legend{padding:0 7px;font-size:11px;line-height:1.4}
.teacher-level-picker.register-level-v3>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;min-width:0}
.teacher-level-picker.register-level-v3 label{display:block!important;width:100%;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.teacher-level-picker.register-level-v3 input{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0;pointer-events:none}
.teacher-level-picker.register-level-v3 span{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:44px;padding:9px 12px;box-sizing:border-box;border:1px solid #dfe4ea;border-radius:12px;background:#fff;white-space:nowrap}
.teacher-level-picker.register-level-v3 input:focus-visible+span{outline:2px solid #d95a91;outline-offset:2px}
.teacher-level-picker.register-level-v3 input:checked+span{border-color:#e31667;background:#fff0f6;color:#c5145d;box-shadow:0 4px 12px rgba(227,22,103,.08)}

/* CAPTCHA sits between account security and the final submit action. */
.register-captcha-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;margin-top:24px;padding:18px 20px;border:1px solid #e4e8ee;border-radius:16px;background:#fafbfd;box-sizing:border-box}
.register-captcha-row>div:first-child{min-width:0}
.register-captcha-row strong{display:block;color:#394556;font-size:12px}
.register-captcha-row span{display:block;margin-top:4px;color:#7c8794;font-size:10.5px;line-height:1.5}
.register-captcha-row .cf-turnstile{min-width:300px;justify-self:end}
.register-captcha-error{grid-template-columns:1fr;border-color:#f0cbd7;background:#fff6f9;color:#9d4168}
.register-captcha-error strong{color:#9d4168}

.register-submit-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:28px;width:100%;margin-top:28px;padding-top:22px;border-top:1px solid #edf0f3}
.register-privacy-note{max-width:620px!important;margin:0!important;color:#7c8794;font-size:10.5px!important;line-height:1.65!important}
.register-submit-row .teacher-auth-submit{min-width:250px;min-height:50px;white-space:nowrap}
.teacher-auth-back{display:inline-flex;margin-top:20px}

@media(max-width:1180px){
  .teacher-auth-shell.register-v3{width:min(980px,calc(100% - 32px));grid-template-columns:1fr}
  .teacher-auth-brand.register-brand-v3{min-height:auto;padding:34px 38px}
  .teacher-auth-brand.register-brand-v3>div{max-width:760px;margin-top:80px}
  .teacher-auth-brand.register-brand-v3 h1{max-width:760px;font-size:44px}
  .teacher-auth-card.register-card-v3{padding:38px 44px 44px}
}

@media(max-width:760px){
  .teacher-auth-shell.register-v3{width:100%;margin:0;border:0;border-radius:0}
  .teacher-auth-brand.register-brand-v3{padding:28px 22px}
  .teacher-auth-brand.register-brand-v3>div{margin-top:48px}
  .teacher-auth-brand.register-brand-v3 h1{font-size:36px}
  .teacher-auth-card.register-card-v3{padding:28px 22px 34px}
  .teacher-auth-card-head-v3{flex-direction:column;gap:12px}
  .teacher-register-section>.teacher-register-grid-v3{grid-template-columns:1fr!important;gap:16px!important}
  .teacher-register-section>.teacher-register-grid-v3>.span-2{grid-column:auto!important}
  .teacher-register-section-head{grid-template-columns:30px minmax(0,1fr)}
  .teacher-register-section-head span{grid-column:2;margin-top:2px;white-space:normal}
  .register-captcha-row{grid-template-columns:1fr;align-items:start;gap:14px;padding:16px}
  .register-captcha-row .cf-turnstile{justify-self:start;max-width:100%;min-width:0}
  .register-submit-row{grid-template-columns:1fr!important;align-items:stretch;gap:16px}
  .register-submit-row .teacher-auth-submit{width:100%;min-width:0}
}

@media(max-width:480px){
  .teacher-auth-brand.register-brand-v3 h1{font-size:32px}
  .teacher-auth-card.register-card-v3{padding-left:18px;padding-right:18px}
  .teacher-level-picker.register-level-v3>div{grid-template-columns:1fr}
  .teacher-level-picker.register-level-v3 span{justify-content:flex-start}
}
