/* Registration, login and OTP share the current coral/cream design. */
.auth-page body{background:#FFF8F3;color:#282326}
.auth-page #tu-dien,.auth-page #welcome>.intro{display:none!important}
.auth-page main{max-width:1080px;padding:32px 20px 56px}
.auth-page #welcome{display:block!important;max-width:560px;min-height:0;margin:0 auto}
.auth-page #welcome[hidden]{display:none!important}
.tcx-exam .auth-card{width:100%;max-width:560px;margin:0 auto;padding:28px 32px;background:#FFF;border:1px solid #F0DED5;border-radius:24px;box-shadow:0 12px 36px #183B560D;color:#282326}
.tcx-exam .auth-card h2{color:#282326!important;font-size:clamp(24px,3vw,30px);margin-bottom:8px}
.tcx-exam .auth-card label{color:#282326;font-weight:600}
.tcx-exam .auth-card .muted,.tcx-exam .auth-card small{color:#68616A}
.tcx-exam .auth-card input:not([type=checkbox]):not([type=radio]),.tcx-exam .auth-card select{width:100%;min-height:48px;padding:11px 14px;background:#FFF!important;color:#282326!important;-webkit-text-fill-color:#282326!important;border:1px solid #EADBD3;border-radius:12px;caret-color:#282326;color-scheme:light;font-size:16px}
.tcx-exam .auth-card input::placeholder{color:#77717A!important;-webkit-text-fill-color:#77717A!important;opacity:1}
.tcx-exam .auth-card input:autofill{box-shadow:0 0 0 1000px #FFF inset!important;-webkit-text-fill-color:#282326!important}
.tcx-exam .auth-card .primary{background:#F0444D;color:#FFF;border-color:#F0444D;box-shadow:0 6px 16px #F0444D20;min-height:48px;font-weight:700}
.tcx-exam .auth-card .primary:hover{background:#DC3545}
.tcx-exam .auth-card .quiet{background:#FFF8F3;color:#183B56;border:1px solid #EADBD3;min-height:44px}
.tcx-exam .auth-card a{color:#B52A36}
.auth-home{display:inline-flex;align-items:center;padding:8px 0;margin-bottom:18px;color:#183B56!important;text-decoration:none;font-weight:600}
.tcx-exam .auth-card .terms-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;margin:18px 0}
.tcx-exam .auth-card .terms-check input{display:inline-block;width:20px;height:20px;min-height:20px;margin:2px 0 0;flex:0 0 20px;accent-color:#F0444D}
.tcx-exam .auth-card :is(button,a,input,select):focus-visible{outline:3px solid #F0444D;outline-offset:3px}
.tcx-exam .auth-card button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:600px){.auth-page main{padding:20px 12px 32px}.tcx-exam .auth-card{padding:22px 18px;border-radius:20px}.auth-page .topbar{position:relative;flex-wrap:wrap;gap:12px}.auth-page .topbar .row{width:100%;justify-content:space-between}}

/* Explicit auth shell independent of the portal's legacy themes. */
.auth-page{color-scheme:light;--ink:#282326;--muted:#68616A;--green:#F0444D;--bg:#FFF8F3;--surface:#FFF;--line:#EADBD3}
.auth-page body{min-width:0;margin:0;font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
.auth-page .topbar{position:relative;top:auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;width:100%;margin:0;padding:16px max(16px,calc((100vw - 1120px)/2));border:0;border-bottom:1px solid #EADBD3;border-radius:0;background:#FFF;box-shadow:none;color:#282326;backdrop-filter:none}
.auth-page .brand{color:#282326;min-width:0}.auth-page .brand small{color:#68616A}.auth-page .brand-logo{width:44px;height:44px;object-fit:contain}
.auth-page .auth-card,.auth-page .auth-card *{min-width:0;box-sizing:border-box}
.auth-page .auth-card::before{content:none}
.auth-page .auth-kicker{color:#68616A;font-size:12px;letter-spacing:.04em;margin-bottom:12px}
.auth-page .auth-card>.row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.auth-page .auth-card>.row h2{margin:0;line-height:1.3;flex:1 1 150px}
.auth-page .auth-card>.row button{flex:0 1 auto}
.auth-page .auth-card input:focus{border-color:#F0444D;box-shadow:0 0 0 3px #F0444D18}
.auth-page main{width:100%}.auth-page #welcome{width:100%}
@media(max-width:600px){.auth-page .topbar{padding:14px 16px;gap:14px}.auth-page .topbar .row{width:100%;display:flex;flex-wrap:wrap;gap:12px}.auth-page .topbar .language-switch{margin:0}.auth-page .topbar .row button{margin:0}.auth-page main{padding:18px 12px 32px}.auth-page .auth-card .auth-actions{flex-direction:column}.auth-page .auth-card .auth-actions button{width:100%}}

.auth-page .language-switch{display:flex;align-items:center;gap:8px;min-width:0}.auth-page .language-switch select{margin:0;max-width:150px}.auth-page .topbar .row>button{flex-shrink:0}

/* Small, accessible movements match the coral learning interface. */
.auth-page .auth-links{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 18px;margin-bottom:18px}
.auth-page .auth-links .auth-home{margin:0;font-size:14px}
.auth-page .topbar [data-mobile-info]{background:#FFF8F3;border:1px solid #EADBD3;color:#183B56}
.auth-page .social-provider-status{margin-top:14px;padding:12px 14px;border:1px solid #EADBD3;border-radius:12px;background:#FFF8F3}
.auth-page .social-provider-status p{margin:0 0 10px;font-size:13px;line-height:1.6}
.auth-page .social-provider-status button{font-size:13px;min-height:44px}
.auth-page .auth-card{animation:tcx-auth-enter 280ms ease-out both}
.auth-page .auth-card :is(button,input,select,a){transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 140ms ease}
.auth-page .auth-card button:active:not(:disabled){transform:scale(.98)}
.auth-page .auth-card :is(#otp-form,#reset-form):not([hidden]){animation:tcx-auth-enter 220ms ease-out both}
.auth-page body.tcx-exam #toast{max-width:min(440px,calc(100vw - 32px));padding:14px 18px;border:1px solid #F0C9C5;border-left:4px solid #F0444D;border-radius:16px;background:#FFF8F3;color:#282326;box-shadow:0 8px 30px #183B5618;font-size:15px;line-height:1.6;animation:tcx-auth-enter 220ms ease-out both}
@keyframes tcx-auth-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.auth-page .auth-card,.auth-page .auth-card :is(#otp-form,#reset-form),.auth-page body.tcx-exam #toast{animation:none}.auth-page .auth-card :is(button,input,select,a){transition:none}.auth-page .auth-card button:active:not(:disabled){transform:none}}

/* Keep the official Google Identity Services control usable if its style resource is delayed or blocked. */
.auth-page :is(#google-login,#google-link){max-width:100%;min-width:0;display:flex;justify-content:center;margin:14px auto}
.auth-page :is(#google-login,#google-link)>div{max-width:100%}
.auth-page :is(#google-login,#google-link) [role=button]{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;max-width:100%!important;padding:0 14px;border:1px solid #dadce0;border-radius:24px;background:#fff;color:#3c4043;font:500 14px/1.4 Arial,sans-serif;letter-spacing:.2px;cursor:pointer;overflow:hidden}
.auth-page :is(#google-login,#google-link) [role=button]:focus-visible{outline:2px solid #4285f4;outline-offset:3px}
.auth-page :is(#google-login,#google-link) .nsm7Bb-HzV7m-LgbsSe-bN97Pc-sM5MNb{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-width:0}
.auth-page :is(#google-login,#google-link) .nsm7Bb-HzV7m-LgbsSe-Bz112c{flex:0 0 20px;width:20px;height:20px;display:flex;align-items:center;justify-content:center}
.auth-page :is(#google-login,#google-link) svg{display:block;flex:0 0 20px;width:20px!important;height:20px!important;max-width:20px;max-height:20px}
.auth-page :is(#google-login,#google-link) .nsm7Bb-HzV7m-LgbsSe-BPrWId{display:block;min-width:0;white-space:normal;text-align:center}
.auth-page :is(#google-login,#google-link) .nsm7Bb-HzV7m-LgbsSe-MJoBVe{position:absolute;inset:0;opacity:0;pointer-events:none}
/* This is the SDK's screen-reader label; keep it accessible without rendering it twice. */
.auth-page :is(#google-login,#google-link) :is(.L6cTce,[id=button-label]){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}

/* Keep the SDK fallback and its personalized iframe in the same single row. */
.auth-page :is(#google-login,#google-link){width:100%;max-width:380px;height:44px}
.auth-page :is(#google-login,#google-link)>div{position:relative!important;height:44px;min-height:0}
.auth-page :is(#google-login,#google-link)>div>iframe{position:absolute!important;top:0!important;left:50%!important;transform:translateX(-50%);margin:0!important}
.auth-page :is(#google-login,#google-link)[data-google-frame-ready] [role=button]{display:none!important}
.auth-page .social-account-help{margin:16px 0;padding:14px 16px;border:1px solid #EADBD3;border-radius:14px;background:#FFF8F3;line-height:1.6}
.auth-page .social-account-help h3{margin:0 0 6px;font-size:16px}
.auth-page .social-account-help p{margin:0 0 12px;font-size:14px}
.auth-page .social-account-help .row{display:flex;gap:8px;flex-wrap:wrap}
.auth-page .social-account-help button{font-size:14px;min-height:44px}
