/* Keep breathing room above the card without reserving a whole screen before the footer. */
html body .page.auth-landing{display:block;min-height:100svh;padding:0 24px 28px;overflow:visible;}
.page.auth-landing .auth-stage{display:flex;align-items:center;justify-content:center;min-height:calc(100svh - 144px);width:100%;padding:78px 0 42px;box-sizing:border-box;}
.page.auth-landing .auth-stage>.auth-shell{flex:none;max-width:100%;margin:0 auto;}
.page.auth-landing>.site-footer{margin:0 auto;}
.auth-theme-controls{position:absolute;top:18px;right:24px;z-index:20;display:flex;gap:4px;padding:4px;border:1px solid #c7d1dc;border-radius:13px;background:#f3f6f8;}
.auth-theme-controls button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#506478;cursor:pointer;}
.auth-theme-controls button[aria-pressed=true]{background:#263644;color:#fff;}
.auth-theme-controls button:focus-visible{outline:2px solid #9a7400;outline-offset:2px;}
html[data-account-theme=dark]{color-scheme:dark;}
html[data-account-theme=dark] body{background:#151b23;color:#e2eaf2;}
html[data-account-theme=dark] body .page.auth-landing{background:#151b23;color:#e2eaf2;}
html[data-account-theme=dark] .auth-landing :is(.auth-shell,.form-panel,.form-layer,.otp-card){background:#202a36;color:#e2eaf2;border-color:#506174;}
html[data-account-theme=dark] .auth-landing :is(.section-title h2,.layer-title b,.otp-card h3,label,.form-panel h2){color:#edf2f8;}
html[data-account-theme=dark] .auth-landing :is(.section-title p,.field-note,.date-wrap small,.layer-title small,.status.neutral,.forgot-link,.language-row,.auth-other-languages,.auth-language-option){color:#b8c6d5;}
html[data-account-theme=dark] .auth-landing :is(.tabs,.signup-progress,.language-row,.auth-theme-controls){background:#293645;border-color:#596b7e;color:#d8e3ef;}
html[data-account-theme=dark] .auth-landing :is(.tab-btn,.lang-btn){color:#bdcbd9;}
html[data-account-theme=dark] .auth-landing :is(.tab-btn.active,.lang-btn.active){background:#ffcc00;color:#172230;border-color:#e3b900;}
html[data-account-theme=dark] .auth-landing :is(.input,.google-btn,.secondary,.form-layer .input){background:#19232f;border-color:#62758a;color:#edf2f8;}
html[data-account-theme=dark] .auth-landing .input::placeholder{color:#a6b6c7;}
html[data-account-theme=dark] .auth-landing :is(.input:focus,.google-btn:hover,.secondary:hover){background:#233242;border-color:#e8c24b;color:#f0f5fa;}
html[data-account-theme=dark] .auth-landing :is(.readonly,.input:disabled,.input[readonly]){background:#2a3543;color:#bdcbd9;}
html[data-account-theme=dark] .auth-landing :is(.field-icon,.password-toggle,.signup-birth-trigger){color:#b8cadc;}
html[data-account-theme=dark] .auth-landing :is(#loginBtn,.primary.yellow){background:#ffcc00;color:#172230;border-color:#e3b900;}
html[data-account-theme=dark] .auth-landing #signupForm :is(.input,.signup-birth-input,.phone-input,.country-search){background:#19232f;border-color:#62758a;color:#edf2f8;}
html[data-account-theme=dark] .auth-landing #signupForm .input::placeholder{color:#a6b6c7;}
html[data-account-theme=dark] .auth-landing #signupForm :is(.signup-predictions,.suggest-box){background:#202e3d;border-color:#657c92;}
html[data-account-theme=dark] .auth-landing #signupForm .signup-predictions button{color:#e1eaf4;}
html[data-account-theme=dark] .auth-landing #signupForm .signup-predictions button:is(:hover,.active,[aria-selected=true]){background:#3c5167;border-color:#94b4d1;}
html[data-account-theme=dark] .auth-landing #signupForm .signup-predictions button small{color:#b6c7d8;}
html[data-account-theme=dark] .auth-landing #signupForm .signup-location-card{background:#233648;border-color:#66809a;}
html[data-account-theme=dark] .auth-landing #signupForm :is(.signup-location-heading,#signupLocationHelp,.signup-location-state){color:#c0d5e8;}
html[data-account-theme=dark] .auth-landing #signupForm :is(.signup-password-strength,.password-strength-caption){color:#bdcbd9;}
html[data-account-theme=dark] :is(#signupBirthPicker,#mfaLoginDialog,.account-recovery-dialog,.recovery-codes-dialog){background:#202e3d;color:#e2eaf2;border-color:#657c92;}
html[data-account-theme=dark] .auth-theme-controls{background:#243343;border-color:#62758a;}
html[data-account-theme=dark] .auth-theme-controls button{color:#c5d4e4;}
html[data-account-theme=dark] .auth-theme-controls button[aria-pressed=true]{background:#ffcc00;color:#172230;}
/* Show validation only after the user's explicit attempt, never on initial load. */
html body [data-field-invalid=true]{outline:2px solid #c8364e;outline-offset:2px;}
html[data-account-theme=dark] body [data-field-invalid=true]{outline-color:#ff899d;}
.form-required-summary{margin:8px 0;color:#aa233b;font:700 12px/1.8 Cairo,sans-serif;text-align:start;}
html[data-account-theme=dark] .form-required-summary{color:#ffadbb;}
@media(max-width:640px){html body .page.auth-landing{padding-inline:12px;}.page.auth-landing .auth-stage{min-height:calc(100svh - 112px);padding:76px 0 28px;}.auth-theme-controls{right:14px;top:15px;}}
