.password-field{position:relative;display:flex;align-items:center;min-width:0}
.password-field input{width:100%;min-width:0;padding-right:52px!important}
.password-reveal{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--muted);border-radius:7px;cursor:pointer}
.password-reveal svg{width:20px;height:20px}
.password-reveal:hover,.password-reveal[aria-pressed=true]{color:var(--text)}
.password-reveal:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.auth-link-row{display:flex;justify-content:flex-end;margin-top:-8px}
.login-simple .login-card .auth-link-row .btn.quiet{width:auto;margin:0;padding:8px 0;min-height:44px;border:0;background:transparent;box-shadow:none}
.auth-secondary{border-top:1px solid var(--line);margin-top:10px;padding-top:18px}
.auth-secondary .auth-help{margin-top:4px}
.auth-verified{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.auth-verified svg{width:18px;height:18px;flex-shrink:0;color:var(--accent)}
.auth-form .auth-error{padding:12px 14px;border-left:3px solid currentColor;font-size:13px;line-height:1.55;color:#b3232e;background:rgba(197,35,46,.06);margin:0}
html[data-theme=dark] .auth-form .auth-error{color:#ff949c;background:rgba(255,148,156,.06)}
.auth-form [data-caps-lock]{color:var(--accent);margin-top:6px}
.auth-form .auth-help{font-size:12px;line-height:1.6}
.auth-form [hidden]{display:none!important}
@media(max-width:480px){.auth-form .btn{white-space:normal}.password-field input{font-size:16px}.auth-form{margin-top:20px}}
/* Registration and password recovery must not be hidden under the consent banner. */
body:has(.login-simple) .sf-cookie-spacer{display:none}
body:has(.login-simple) .sf-cookie-banner{position:relative;inset:auto;width:calc(100% - 36px);max-width:1000px;margin:0 auto 24px;max-height:none;box-sizing:border-box}
/* Action marks stay beside their labels at every text size. */
.auth-telegram{gap:10px;white-space:normal}
.auth-telegram>svg{width:19px;height:19px;flex:0 0 19px}
.auth-telegram>span{min-width:0;text-wrap:balance}
.auth-telegram>svg:last-child:not(:first-child){width:15px;height:15px;flex-basis:15px;opacity:.75}
.login-card .small:has(>svg){display:flex;align-items:center;justify-content:center;gap:6px}
.login-card .small>svg{width:14px;height:14px;flex:0 0 14px}
.auth-form .btn>svg,.security-method .btn>svg{width:17px;height:17px;flex:0 0 17px}
/* Keep brand and preferences apart, including the two-row phone header. */
.login-simple .login-nav{width:100%;column-gap:24px;row-gap:18px}
.login-simple .login-tools{gap:16px}
.login-simple .login-tools>.lang{margin-left:0}
/* The main landmark receives focus on navigation, but is not an input. Keep
   focus indicators on actual fields and controls without framing the page. */
.login-simple #main:focus{outline:none}
/* Align the clock with the first line rather than the whole wrapped paragraph. */
.login-card .small.auth-wait-note{align-items:flex-start;justify-content:flex-start;gap:9px;text-align:left}
.login-card .auth-wait-note>svg{width:16px;height:16px;flex:0 0 16px;margin-top:.16em}
.login-card .auth-wait-note>span{min-width:0;flex:1}

/* Shared provider row follows Flow's controls in both themes. */
html[data-design="flow"] .login-simple .login-card .auth-providers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
html[data-design="flow"] .login-simple .login-card .auth-providers[data-single]{grid-template-columns:1fr}
html[data-design="flow"] .login-simple .login-card .btn.auth-provider{display:flex;align-items:center;justify-content:center;gap:9px;min-height:60px;width:100%;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:20px 20px 9px 20px;background:var(--surface2);color:var(--text);box-shadow:none;white-space:normal}
html[data-design="flow"] .login-simple .login-card .btn.auth-provider:hover{border-color:var(--accent);background:var(--selected-bg)}
.auth-provider>svg{width:20px;height:20px;flex:0 0 20px}
.auth-provider.auth-telegram>svg{color:var(--accent)}
.auth-provider-label{min-width:0;text-align:left;line-height:1.25}
.auth-provider-label>small{display:block;font-size:11px;font-weight:450;color:var(--muted)}
.auth-provider-label>strong{display:block;font-size:14px;font-weight:600;letter-spacing:0}
html[data-design="flow"] .login-simple .login-card .auth-divider{margin:17px 0}
html[data-design="flow"] .login-simple .login-card .auth-form{margin-top:0;gap:15px}
html[data-design="flow"] .login-simple .login-card .auth-form .btn.primary{margin-top:0;min-height:46px}
.auth-password-label{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
html[data-design="flow"] .login-simple .login-card .auth-form .auth-forgot{width:auto;min-height:28px;margin:0;padding:2px 0;border:0;border-radius:4px;background:transparent;box-shadow:none;font-size:11px;line-height:1.4;color:var(--accent)}
html[data-design="flow"] .login-simple .login-card .auth-secondary{margin-top:0;padding-top:12px}
html[data-design="flow"] .login-simple .login-card .auth-secondary .btn{margin:0;min-height:40px;padding:6px 12px}
html[data-design="flow"] .login-simple .login-card .auth-secondary .auth-help{font-size:11px;margin-top:5px}
.login-simple .auth-captcha{min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px}
.login-simple [data-auth-captcha]{width:100%;display:flex;justify-content:center;min-height:65px}
.login-simple .auth-captcha [data-captcha-status]{text-align:center;font-size:11px;line-height:1.45}
.login-simple .auth-captcha [data-captcha-status]:empty{display:none}
.login-icon>svg{max-width:24px;max-height:24px}
@media(max-width:380px){html[data-design="flow"] .login-simple .login-card .btn.auth-provider{padding-inline:8px;gap:7px}.auth-provider-label>strong{font-size:13px}.auth-provider-label>small{font-size:10px}}

html[data-design="flow"] .login-simple .login-card .auth-captcha-retry{margin:0;min-height:36px;padding:6px 12px;color:var(--accent)}
