
:root{color-scheme:light;--text:#182b3a;--muted:#536575;--border:#a5b3bd;--surface:#ffffff;--accent:#12649a;--error:#b53642}
*{box-sizing:border-box}body{margin:0;background:#f2f5f7;color:var(--text);font-family:Inter,Arial,sans-serif}main{position:relative;min-height:100svh;display:flex}main>img{position:absolute;width:100%;height:100%;object-fit:cover;filter:brightness(.42) saturate(1.02)}.side{width:max(360px,33.333333%);flex-shrink:0;position:relative;min-height:100svh;padding:24px 40px 32px;background:rgb(255 255 255 / 54%);backdrop-filter:blur(8px);display:flex;flex-direction:column;gap:28px;border-right:1px solid #dce3e9}.brand{display:flex;align-items:center;justify-content:center;gap:14px;font-size:22px;font-weight:800}.mark{width:54px;height:54px;border-radius:14px;background:#1674e8;display:flex;align-items:center;justify-content:center;font-size:30px}.center{flex:1;display:flex;align-items:center;justify-content:center}.card{width:min(100%,360px)}header{text-align:center;margin-bottom:24px}h1{font-size:24px;line-height:1.2;margin:0 0 8px;font-weight:800}p{font-size:14px;line-height:1.5;margin:0;color:var(--muted)}form{display:flex;flex-direction:column;gap:16px}label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}input{min-width:0;width:100%;height:44px;padding:0 12px;border:1px solid #98a8b5;border-radius:7px;background:#ffffff;color:var(--text);font:inherit;font-size:16px}input::placeholder{color:#647687}input,button{outline:none}input[aria-invalid=true]{border-color:var(--error)}.password{position:relative}.password input{padding-right:88px}button{cursor:pointer;font:inherit;color:inherit;border-radius:6px}.reveal{position:absolute;right:0;top:0;height:44px;padding:0 12px;background:transparent;border:0;font-size:12px}.reveal:hover{color:var(--accent)}small{font-size:12px;color:var(--muted);font-weight:400;line-height:1.5}.submit:active{transform:translateY(1px)}.note{font-size:12px;text-align:center;margin-top:20px}.status{padding:12px;border:1px solid var(--border);border-radius:7px;font-size:14px;line-height:1.5}.status:empty{display:none}footer{text-align:center;font-size:12px;color:var(--muted)}@media(max-width:920px){.side{width:min(480px,100%);padding:24px}}@media(max-width:620px){main{display:block}.side{width:100%;padding:20px;gap:32px}.card{width:min(100%,400px)}.center{padding:12px 0}}@media(forced-colors:active){.side{background:Canvas}input,button{border:1px solid ButtonText}}

a{color:var(--accent)} input[type=hidden]{display:none}
.login-methods{display:flex;gap:4px;padding:4px;border:1px solid #98a8b5;border-radius:7px;background:#ffffff}.method{position:relative;flex:1;cursor:pointer}.method input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.method span{display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:5px;color:var(--muted)}.method input:checked+span{color:var(--text)}.method:hover span{color:var(--text)}
.password input{padding-right:48px}.reveal{width:44px;padding:0;display:flex;align-items:center;justify-content:center}.reveal svg{display:block;flex-shrink:0;pointer-events:none}.reveal .eye-closed{display:none}.reveal[aria-pressed=true] .eye-open{display:none}.reveal[aria-pressed=true] .eye-closed{display:block}
/* Hide the browser password reveal control; retain the custom button. */
input::-ms-reveal,input::-ms-clear{display:none}

.brand-logo{display:block;width:54px;height:54px;flex-shrink:0;object-fit:contain;border-radius:14px}

/* Sliding selection follows the native radio state, including keyboard changes. */
.login-methods{position:relative;isolation:isolate}
.login-methods::before{content:"";position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 12px)/2);border-radius:5px;background:#e4ecf2;pointer-events:none;transition:transform 240ms cubic-bezier(.22,.68,0,1)}
.login-methods:has(input[value="phone"]:checked)::before{transform:translateX(calc(100% + 4px))}
.login-methods .method{z-index:1}
.method span{transition:color 180ms ease}
@media(prefers-reduced-motion:reduce){.login-methods::before,.method span{transition:none}}
.developer-credit{flex-shrink:0;width:100%;margin-top:auto;display:flex;justify-content:center}
.developer-badge{display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:12px 20px;border:1px solid #d8e0e6;border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);color:#182b3a;text-decoration:none;text-align:left;transition:background-color .2s,border-color .2s}
.developer-badge img{display:block;width:32px;height:32px;object-fit:contain;flex-shrink:0}
.developer-badge-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.developer-badge-copy small{color:#536575;font-size:11px;line-height:1.35;font-weight:400}
.developer-badge-copy strong{color:#182b3a;font-size:14px;line-height:1.4;font-weight:600;letter-spacing:-.02em}
.developer-badge:hover{background:rgba(242,246,249,.98);border-color:rgb(113 113 113 / 35%)}
@media(prefers-reduced-motion:reduce){.developer-badge{transition:none}}

.submit,.secondary-action{width:100%;min-height:38px;padding:8px 16px;border:1px solid #5e829500;border-radius:8px;color:#ffffff;background:#2d5686;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font:inherit;font-size:12px;font-weight:800;text-align:center;text-decoration:none;transition:color .18s ease,border-color .18s ease,background .18s ease}
.secondary-action{margin-top:16px}
.submit:hover,.secondary-action:hover{color:#ffffff;border-color:#5e829500;background:#24476f}
@media(prefers-reduced-motion:reduce){.submit,.secondary-action{transition:none}}
.submit:disabled{opacity:.6;cursor:wait;transform:none}

.submit.is-loading{position:relative;color:transparent;opacity:1;cursor:wait;pointer-events:none}
.submit.is-loading::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid rgba(255,255,255,.25);border-top-color:#ffffff;border-radius:50%;animation:button-loading .7s linear infinite}
@keyframes button-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.submit.is-loading::after{animation:none}}
.form-notice{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #edb7be;border-radius:10px;background:#fff1f2;color:#9d2634;opacity:0;transform:translateY(-6px);transition:opacity .2s ease,transform .2s ease}
.form-notice[hidden]{display:none}.form-notice.is-visible{opacity:1;transform:translateY(0)}
.form-notice-icon{width:22px;height:22px;flex:0 0 22px;display:flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:50%;font-size:14px;font-weight:700;line-height:1}
.form-notice-copy{flex:1;min-width:0}.form-notice-copy strong{display:block;font-size:13px;line-height:1.5;font-weight:600}.form-notice-copy p{margin:4px 0 0;color:#923543;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.form-notice-close{flex:0 0 28px;width:28px;height:28px;margin:-3px -5px 0 0;padding:0;border:0;background:transparent;color:inherit;font-size:22px;line-height:1;transition:background .18s ease}.form-notice-close:hover{background:#182b3a0d}
.form-notice[data-type=success]{background:#ecf8f2;border-color:#a1cdb7;color:#216448}.form-notice[data-type=success] p{color:#29684d}
@media(prefers-reduced-motion:reduce){.form-notice,.form-notice-close{transition:none;transform:none}}
/* Disable native touch highlighting on interactive controls. */
a,button,input,label,[role=button]{-webkit-tap-highlight-color:transparent}

.developer-credit--floating{position:fixed;right:24px;bottom:24px;z-index:5;width:auto;max-width:calc(100% - 48px);margin:0}
@media(max-width:920px){
 
 .developer-credit--floating{left:0;right:0;bottom:0;width:100%;max-width:100%;padding:0}
 .developer-credit--floating .developer-badge{flex:1 1 100%;width:100%;max-width:none;margin:0;justify-content:center;border-radius:0;border-left:0;border-right:0;border-bottom:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(248,250,252,.98)}
}
.developer-badge img{filter:invert(1)}

/* Theme switch and original dark palette. */
.theme-toggle{position:relative;align-self:flex-end;flex:0 0 44px;width:44px;height:44px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);background:var(--surface);color:var(--text);z-index:2;transition:background .18s ease}
.theme-toggle:hover{background:color-mix(in srgb,var(--surface) 85%,var(--text))}
.theme-toggle svg{flex:none}.theme-sun{display:none}.theme-moon{display:block}
.auth-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}.auth-topbar .brand{min-width:0;justify-content:flex-start;font-size:20px;gap:12px}.auth-topbar .theme-toggle{align-self:center}.brand>span{min-width:0;overflow-wrap:break-word}
main>img{filter:brightness(1) saturate(.9)}
:root[data-theme=dark]{color-scheme:dark;--text:#eaf7fb;--muted:#bed0d9;--border:#58717e;--surface:#102938;--accent:#8ecbff;--error:#ffb4b4}
[data-theme=dark] body{background:#06131c}
[data-theme=dark] main>img{filter:brightness(.8) saturate(.95)}
[data-theme=dark] .side{background:rgb(12 21 27 / 78%);border-right-color:#ffffff12}
[data-theme=dark] input,[data-theme=dark] .login-methods{border-color:#1c2d36;background:#081923b8}
[data-theme=dark] input::placeholder{color:#a3b5bf}
[data-theme=dark] input[aria-invalid=true]{border-color:var(--error)}
[data-theme=dark] .login-methods::before{background:#102938}
[data-theme=dark] .developer-badge{border-color:rgba(255,255,255,.08);background:rgba(26,27,27,.5);color:#f5f8f8}
[data-theme=dark] .developer-badge img{filter:none}
[data-theme=dark] .developer-badge-copy small{color:#a6b0af}
[data-theme=dark] .developer-badge-copy strong{color:#f5f8f8}
[data-theme=dark] .developer-badge:hover{background:rgba(40,44,44,.8);border-color:rgb(113 113 113 / 35%)}
[data-theme=dark] .form-notice{border-color:#e98b8b38;background:#321f27e8;color:#f5c3c3}
[data-theme=dark] .form-notice-copy p{color:#e6baba}
[data-theme=dark] .form-notice-close:hover{background:#ffffff12}
[data-theme=dark] .form-notice[data-type=success]{background:#172e2be8;border-color:#86cfb638;color:#b5e6d6}
[data-theme=dark] .form-notice[data-type=success] p{color:#b5d6cb}
[data-theme=dark] .theme-sun{display:block}[data-theme=dark] .theme-moon{display:none}
@media(max-width:920px){[data-theme=dark] .developer-credit--floating .developer-badge{background:rgba(20,24,25,.94)}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
@media(forced-colors:active){[data-theme] .side{background:Canvas}}
.action-icon{display:block;flex-shrink:0}.submit.is-loading .action-icon,.submit.is-loading>span{visibility:hidden}

.auth-topbar--mobile{justify-content:flex-end}
.auth-page .card>.brand{justify-content:center;margin-bottom:28px;gap:12px;font-size:22px}
.desktop-theme-control{display:none}
@media(min-width:921px){
 .auth-topbar--mobile{display:none}
 .desktop-theme-control{position:fixed;top:24px;right:24px;z-index:6;display:flex}
}
/* Hide scrollbars without disabling scrolling. */
html,body,*{scrollbar-width:none;-ms-overflow-style:none}
*::-webkit-scrollbar{display:none;width:0;height:0}
