#login-dialog{width:420px;max-width:calc(100vw - 32px);border:1px solid #e5e5e7;border-radius:22px;padding:34px;color:#1d1d1f;background:#fff;box-shadow:0 24px 80px #0002;text-align:center}
#login-dialog::backdrop{background:#17202f55;backdrop-filter:none}
#login-dialog [hidden],.account-menu [hidden]{display:none!important}
.login-close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:#86868b;font-size:27px;cursor:pointer}
#login-title{margin:0;font-size:23px;letter-spacing:-.6px}
.login-lead{color:#707078;font-size:13px;line-height:1.65;margin:9px 0 20px}
.login-panel{min-height:260px}
.qr-status,.confirm-status{min-height:23px;color:#6e6e73;font-size:12px;line-height:1.6;margin:12px 0 0}
.primary-action,.secondary-action{box-sizing:border-box;width:100%;border:0;border-radius:10px;padding:12px 16px;margin-top:14px;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.primary-action{background:#2751e8;color:#fff}.primary-action:hover{background:#1f46cf}.primary-action:disabled{background:#aab6db;cursor:wait}
.secondary-action{background:#f1f3f7;color:#333}.secondary-action:hover{background:#e8ebf1}
.qr-box{width:220px;height:220px;margin:0 auto 12px;border:1px solid #e2e4e9;border-radius:14px;background:#fff;display:grid;place-items:center;overflow:hidden}
.qr-box svg{display:block;width:204px;height:204px}
.qr-placeholder{padding:20px;color:#8a8a91;font-size:13px}
.login-note{margin:15px auto 0;max-width:310px;color:#8a8a91;font-size:12px;line-height:1.7}
.qr-refresh{margin-top:8px}
.login-alternatives{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:18px}.login-alternatives button{border:0;background:transparent;color:#2751e8;font:inherit;font-size:13px;min-height:44px;padding:6px 9px;cursor:pointer}
.recovery-form{text-align:left;padding-top:10px}.recovery-form label{font-size:14px}.recovery-form input,.saved-recovery-code{box-sizing:border-box;width:100%;border:1px solid #d9dce3;border-radius:8px;padding:12px;font:inherit;font-size:15px;margin-top:10px}.saved-recovery-code{height:94px;resize:none}.recovery-status,.guest-status,.recovery-save-status{font-size:14px;line-height:1.6;color:#515154}.account-menu{width:140px}.account-menu-action{min-height:44px;font-size:13px}.login-lead,.login-note{font-size:14px;color:#626269}.login-close{min-width:44px;min-height:44px;top:6px;right:6px}.login-panel[data-panel=start],.login-panel[data-panel=recover],.login-panel[data-panel=recovery]{min-height:0}
.confirm-panel{padding-top:18px}.confirm-panel h3{font-size:20px;margin:0 0 16px}.confirm-account{color:#515154;font-size:14px;line-height:1.7}
.login-entry.signed-in{max-width:150px;overflow:hidden;text-overflow:ellipsis;background:#eef2ff;color:#2751e8;font-weight:700}.login-entry.signed-in::after{content:"›";margin-left:6px}
.account-menu{position:fixed;z-index:1000;width:124px;border:1px solid #e0e3e9;border-radius:8px;padding:5px;background:#fff;box-shadow:0 8px 22px #1118271f;color:#27272a;text-align:left}.account-menu.rename-mode{width:220px}
.account-menu-actions{padding:0}
.account-menu-action{display:block;width:100%;border:0;border-radius:7px;padding:10px;background:transparent;color:#323238;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.account-menu-action:hover,.account-menu-action:focus-visible{background:#f1f4fb;outline:0}.account-menu-action.logout-action{color:#b42318}
.account-rename-form{padding:9px 8px 6px}.account-rename-form label{display:block;margin-bottom:6px;color:#55555d;font-size:11px;font-weight:700}
.account-rename-form input{box-sizing:border-box;width:100%;border:1px solid #d9dce3;border-radius:7px;padding:9px 10px;font:inherit;font-size:12px}
.account-rename-form input:focus{border-color:#2751e8;outline:3px solid #2751e824}
.account-rename-form>div{display:flex;gap:6px;margin-top:8px}.account-rename-form button{flex:1;border:0;border-radius:7px;padding:8px;background:#2751e8;color:#fff;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.account-rename-form .rename-cancel{background:#eef0f4;color:#45454c}.account-rename-form button:disabled{opacity:.55;cursor:wait}
.profile-message{min-height:16px;margin:6px 0 0;color:#187b3b;font-size:10px;line-height:1.5}
.account-menu-message{margin:5px 7px;color:#b42318;font-size:10px;line-height:1.45}
@media(max-width:520px){#login-dialog{padding:29px 22px}.login-panel{min-height:240px}.qr-box{width:205px;height:205px}.qr-box svg{width:190px;height:190px}#login-title{font-size:21px}.account-menu.rename-mode{width:min(220px,calc(100vw - 16px))}}

/* Form structure adapted from Uiverse/Yaya12085; tabs, OTP states and layout are site-specific. */
#login-dialog{box-sizing:border-box;width:440px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;padding:32px;border-radius:24px;text-align:left}
.login-brand{width:48px;height:48px;margin-bottom:18px;border-radius:14px;overflow:hidden}
.login-brand img{display:block;width:100%;height:100%;object-fit:cover}
#login-title{font-size:26px;line-height:1.3;letter-spacing:-.6px;text-align:left}
.login-lead{font-size:14px;color:#697181;margin:9px 0 24px;line-height:1.65}
.otp-channels{display:flex;gap:4px;padding:5px;margin:0 0 24px;background:#f1f3f8;border:1px solid #eceef3;border-radius:13px}
.otp-channels button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;height:42px;padding:0 8px;border:0;border-radius:9px;background:transparent;color:#667082;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.otp-channels svg{width:18px;height:18px;flex-shrink:0}
.otp-channels button[aria-selected=true]{background:#fff;color:#3155f5;box-shadow:0 2px 5px #17202f0b}
.otp-channels button:hover{color:#3155f5}
.otp-form{display:flex;flex-direction:column;gap:9px}
.otp-form label{font-size:13px;font-weight:600;line-height:1.5;color:#444c5b}
.otp-form>label:not(:first-child){margin-top:9px}
.otp-form input{box-sizing:border-box;width:100%;min-width:0;height:48px;padding:0 14px;border:1px solid #dfe3eb;border-radius:10px;background:#fafbfc;color:#222b3a;font:inherit;font-size:15px;box-shadow:none;transition:border-color .15s,background .15s}
.otp-form input::placeholder{color:#828a98;font-size:14px}
.otp-form input:focus{outline:3px solid #3155f51c;border-color:#3155f5;background:#fff}
.otp-code-row{display:flex;gap:10px;align-items:center}
.otp-code-row input{flex:1;letter-spacing:2px}
.otp-send{flex:0 0 112px;height:48px;padding:0 10px;border:1px solid #dce3fa;border-radius:10px;background:#f0f3ff;color:#3155f5;font:inherit;font-weight:600;font-size:13px;white-space:nowrap;cursor:pointer}
.otp-send:hover:not(:disabled){background:#e7edff}
.otp-status{margin:1px 0 0;min-height:36px;font-size:12px;line-height:1.55;color:#637082;overflow-wrap:anywhere}
.otp-status.is-error{color:#b42318}
.otp-form .primary-action{display:flex;align-items:center;justify-content:center;gap:12px;height:48px;margin:0;border-radius:11px;background:#3155f5;font-size:15px}
.otp-form .primary-action:hover:not(:disabled){background:#2345dd}
.otp-form .primary-action span{font-size:20px;line-height:1}
.otp-form .primary-action:disabled,.otp-send:disabled{opacity:.52;cursor:not-allowed}
.otp-form .login-note{max-width:none;margin:8px 0 0;text-align:center;color:#697181;font-size:12px;line-height:1.65}
.otp-channels button:focus-visible,.otp-send:focus-visible,.otp-submit:focus-visible,.login-close:focus-visible{outline:3px solid #3155f559;outline-offset:3px}
@media(max-width:400px){#login-dialog{padding:26px 20px}.otp-channels{margin-bottom:21px}.otp-channels button{font-size:13px;gap:5px}.otp-send{flex-basis:100px;padding:0 7px;font-size:12px}.otp-code-row{gap:8px}.otp-form input{padding:0 11px}.login-brand{margin-bottom:15px}#login-title{font-size:24px}}
@media(prefers-reduced-motion:reduce){.otp-form input,.otp-channels button{transition:none}}
.email-login-methods{display:flex;gap:8px;margin:-8px 0 8px}.email-login-methods button,.email-account-links button{min-height:36px;border:0;border-radius:7px;padding:6px 10px;background:transparent;color:#657082;font:inherit;font-size:12px;cursor:pointer}.email-login-methods button[aria-pressed=true]{background:#eef2ff;color:#3155f5;font-weight:600}.email-account-links{display:flex;justify-content:center;gap:12px}.email-account-links button{color:#3155f5}.email-login-methods button:focus-visible,.email-account-links button:focus-visible{outline:3px solid #3155f559;outline-offset:2px}
.login-options{display:flex;justify-content:space-between;flex-wrap:wrap;gap:0 14px;margin-top:3px}.otp-form .login-option{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:12px;font-weight:400;color:#657082;cursor:pointer}.otp-form .login-option input{width:18px;height:18px;flex:0 0 18px;padding:0;margin:0;accent-color:#3155f5;cursor:pointer}.otp-form .login-option input:focus-visible{outline:3px solid #3155f559;outline-offset:2px}
.account-field-hint{margin:0;color:#697181;font-size:12px;line-height:1.5}
.account-recovery-result{font-size:14px;line-height:1.7;color:#444c5b}
.account-recovery-result h3{margin:0 0 8px;color:#222b3a;font-size:18px}
.account-recovery-result label{font-size:12px;font-weight:600}
.account-recovery-result textarea{height:106px;font:15px/1.7 ui-monospace,monospace;overflow-wrap:anywhere}
.recovery-download{display:inline-flex;align-items:center;min-height:44px;color:#3155f5;font-weight:600}
.account-recovery-result .primary-action{width:100%;margin-top:16px;min-height:48px}
#login-dialog [hidden]{display:none!important}
#login-dialog{padding:26px 30px}
.login-brand{width:36px;height:36px;margin-bottom:12px;border-radius:11px}
.login-lead{margin:6px 0 16px}
.otp-channels{margin-bottom:16px}.otp-channels button{height:38px}
.otp-form{gap:7px}.otp-form>label:not(:first-child){margin-top:6px}.otp-form input{height:44px}
.otp-status{min-height:18px}.otp-form .login-option{min-height:36px}
@media(max-width:400px){#login-dialog{padding:22px 20px}.login-brand{margin-bottom:10px}}
.login-brand{float:left;margin:0 12px 0 0}
#login-title{min-height:36px;padding-top:3px;font-size:24px}
.login-lead{clear:both}

/* Existing site tabs, extended for account/email/phone login. */
.login-method-tabs{margin-bottom:10px}.contact-form .otp-send{height:44px}.contact-form .contact-note{margin-top:5px}
