.auth-methods{margin:0 0 24px}.auth-methods-label{display:block;margin-bottom:10px;font-size:16px}.auth-method-buttons{display:flex;flex-wrap:wrap;gap:8px}.auth-method-buttons button,.auth-demo-dialog button{font:400 16px Manrope,sans-serif;min-height:46px;padding:10px 16px;border:1px solid #cfdfd6;border-radius:6px;background:#eef3ef;color:#037a4a;cursor:pointer}.auth-method-buttons button[aria-pressed=true]{background:#e2ebe4;color:#037a4a;border-color:#037a4a}.auth-demo-dialog .auth-continue{background:#037a4a;color:white}.auth-demo-note{font-size:13px!important;color:#68736d;line-height:1.5;margin:10px 0}.auth-demo-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #cfdfd6;border-radius:10px;color:#202725;background:white;font:400 16px/1.5 Manrope,sans-serif;box-sizing:border-box}.auth-demo-dialog::backdrop{background:#20382c99}.auth-demo-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.auth-demo-dialog h2{font-size:22px;margin:0}.auth-demo-dialog label{display:grid;gap:6px;margin:16px 0}.auth-demo-dialog input,.auth-demo-dialog select{width:100%;box-sizing:border-box;min-height:46px;padding:10px;border:1px solid #cfdfd6;border-radius:6px;background:white;font:inherit}.auth-demo-dialog [hidden]{display:none!important}.auth-demo-dialog [role=alert]{color:#a42b21}.auth-demo-dialog [role=alert]:empty{display:none}.auth-demo-dialog [data-close]{font-size:22px;min-width:44px;padding:6px}.auth-demo-dialog button:focus-visible,.auth-methods button:focus-visible{outline:2px solid #037a4a;outline-offset:2px}@media(max-width:440px){.auth-method-buttons button{flex:1 1 100%;padding:10px 8px;white-space:normal}.auth-demo-dialog{padding:18px}.auth-demo-dialog h2{font-size:20px}}

.auth-demo-dialog [data-cancel]{margin-left:8px}
.auth-demo-dialog [data-flow]>button{margin:6px 8px 6px 0;max-width:100%;white-space:normal}.auth-account-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 0;border-top:1px solid #cfdfd6}.auth-account-row p{flex:1 1 200px;margin:0}.auth-account-row button,.auth-last-method button{font:400 16px/1.5 Manrope,sans-serif;padding:10px 14px;border:1px solid #91b39f;border-radius:6px;background:#eef3ef;color:#037a4a;cursor:pointer}.auth-last-method{font:400 14px/1.5 Manrope,sans-serif}.auth-last-method button{margin-top:8px} [data-auth-cabinet]{margin-top:24px} [data-auth-cabinet]>p{overflow-wrap:anywhere}.auth-demo-dialog details{padding:12px 0;font-size:13px}.auth-demo-dialog details button{margin:6px}

/* Shared spacing and regular typography for every social sign-in entry point. */
dialog.auth-demo-dialog header { padding-bottom: 16px; margin-bottom: 12px; align-items: center; }
dialog.auth-demo-dialog h2 { font-weight: 400; line-height: 1.3; }
dialog.auth-demo-dialog label,
dialog.auth-demo-dialog input,
dialog.auth-demo-dialog select { font-weight: 400; }
dialog.auth-demo-dialog [data-close] { position: static; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0; }
@media(max-width:760px){dialog.auth-demo-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));overscroll-behavior:contain}dialog.auth-demo-dialog input,dialog.auth-demo-dialog select{font-size:16px;min-height:48px}body:has(dialog.auth-demo-dialog[open]){overflow:hidden}}
.auth-method-buttons [data-auth], [data-auth-icon]{display:flex;align-items:center;gap:10px;min-width:0;overflow-wrap:anywhere}
.auth-method-buttons [data-auth]::before,[data-auth-icon]::before{content:"";display:block;width:28px;height:28px;flex:0 0 28px;background-position:center;background-size:contain;background-repeat:no-repeat}
[data-auth="yandex"]::before,[data-auth-icon="yandex"]::before{background-image:url("assets/auth-yandex.svg")}
[data-auth="vk"]::before,[data-auth-icon="vk"]::before{background-image:url("assets/auth-vk.svg")}
[data-auth="sms"]::before,[data-auth-icon="sms"]::before{background-image:url("assets/auth-phone.svg")}
[data-auth="email"]::before,[data-auth-icon="email"]::before{background-image:url("assets/auth-email.svg")}
.auth-account-row button{min-height:44px}
.auth-account-primary{padding:12px 0}
@media(max-width:440px){.auth-account-row p{flex-basis:100%}.auth-method-buttons [data-auth]{justify-content:flex-start}}
[data-auth-cabinet][data-auth-compact]{margin-top:12px;border-top:1px solid #cfdfd6;padding-top:16px}
[data-auth-compact] h3{font-size:16px;line-height:1.4;margin:0 0 8px;font-weight:600}
[data-auth-compact] .auth-account-row{gap:8px;padding:10px 0;font-size:13px}
[data-auth-compact] .auth-account-row p{flex:1 1 150px;line-height:1.5;padding:0}
/* Keep the shared auth controls above the dealer cabinet's generic button rules. */
:is([data-auth-compact],.b2b #b2b-main [data-auth-compact]) .auth-account-row button{font:400 16px/1.5 Manrope,sans-serif;padding:8px 10px;width:164px;flex:0 0 164px;box-sizing:border-box;min-height:44px;border:1px solid #91b39f;border-radius:6px;background:#eef3ef;color:#037a4a;cursor:pointer}
[data-auth-compact] .auth-account-row:first-of-type{border-top:0}
[data-auth-compact] .auth-compact-note{font-size:12px;line-height:1.5;color:#68756f;margin:4px 0 8px}
[data-auth-compact] [data-auth-icon]::before{width:24px;height:24px;flex-basis:24px}
.auth-verified{color:#037a4a}
/* Equal-width methods in every shared login and registration form. */
.auth-method-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.auth-method-buttons:has(>button:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
.auth-method-buttons button[data-auth]{width:100%;box-sizing:border-box;justify-content:center;text-align:center;white-space:normal;line-height:1.4;padding:10px 8px}
@media(max-width:600px){.auth-method-buttons,.auth-method-buttons:has(>button:nth-child(4)){grid-template-columns:1fr}}
.auth-phone-reminder{display:flex;align-items:center;gap:12px;margin:8px 0 12px;padding:12px;background:#eef3ef;border-radius:6px}
.auth-phone-reminder .auth-compact-note{flex:1;margin:0}
:is(.auth-phone-reminder,.b2b #b2b-main .auth-phone-reminder)>button{min-height:44px;padding:8px 12px;border:1px solid #cfdfd6;border-radius:6px;background:#fff;color:#037a4a;font:400 16px Manrope,sans-serif;cursor:pointer;flex-shrink:0}
@media(max-width:440px){.auth-phone-reminder{flex-wrap:wrap}.auth-phone-reminder .auth-compact-note{flex-basis:100%}.auth-phone-reminder>button{margin-left:auto}}
.auth-phone-tests{font-size:12px;line-height:1.5;margin-top:16px;color:#68756f}
:is(.auth-phone-tests,.b2b #b2b-main .auth-phone-tests) button{display:block;min-height:44px;margin:8px 0;padding:8px;border:1px solid #cfdfd6;background:#eef3ef;color:#037a4a;border-radius:6px;font:inherit}
body button.auth-resend{font:400 16px/1.4 Manrope,Arial,sans-serif;min-height:44px;max-width:100%;padding:12px 16px;border:1px solid #cfdfd6;border-radius:6px;background:#eef3ef;color:#037a4a;white-space:normal}
body button.auth-resend:hover{background:#e2ebe4}
body button.auth-resend:focus-visible{outline:2px solid #037a4a;outline-offset:3px}

/* Shared quiet feedback: errors are text, successful sends are a separate status. */
body :is(.auth-error,.access-error,#code-error,#registration-email-error,#registration-code-error,.auth-demo-dialog [role=alert]){
 color:#a12b27;font:400 14px/1.5 Manrope,Arial,sans-serif;background:none;border:0;box-shadow:none;padding:0;overflow-wrap:anywhere;
}
body :is(.auth-error,.auth-status):empty{display:none}
body .auth-status{color:#037a4a;font:400 14px/1.5 Manrope,Arial,sans-serif;margin:8px 0;background:none;border:0;padding:0}
body .auth-resend-hint{display:block;color:#68736d;font:400 13px/1.5 Manrope,Arial,sans-serif;margin:6px 0 0}
body button.auth-resend:disabled{color:#68736d;border-color:#cfdfd6;background:#f7f8f6;cursor:default}
body :is(.access-card,.dealer-email-gate,.auth-demo-dialog,[data-phone-gate]) input[aria-invalid=true],
body :is(#access-code,#registration-code,#registration-email)[aria-invalid=true]{border-bottom:2px solid #a12b27}
body :is(.access-card,.dealer-email-gate,.auth-demo-dialog,[data-phone-gate]) input[aria-invalid=true]:focus-visible,
body :is(#access-code,#registration-code,#registration-email)[aria-invalid=true]:focus-visible{outline-color:#a12b27}

/* 27.09.2026: choose new/existing first; email primary, social methods secondary. */
[data-auth-copy]{display:none}
html[data-auth-entry-initial="choice"][data-auth-entry-checkout="false"] [data-auth-copy="choice"],
html[data-auth-entry-initial="choice"][data-auth-entry-checkout="true"] [data-auth-copy="checkout"],
html[data-auth-entry-initial="existing"] [data-auth-copy="existing"]{display:inline}
html[data-auth-entry-initial="choice"] :is(#email-step,.auth-entry-back),
html[data-auth-entry-initial="existing"] #auth-entry-options{display:none!important}
.auth-entry-options{display:grid;gap:12px;margin:24px 0}
.auth-entry-option{display:flex;flex-direction:column;gap:6px;width:100%;padding:18px 20px;border:1px solid var(--line);border-radius:6px;background:var(--surface-card);color:var(--green);font:400 18px/1.4 Manrope,sans-serif;text-align:left;text-decoration:none;cursor:pointer;box-sizing:border-box}
.auth-entry-option small{font:400 14px/1.5 Manrope,sans-serif;color:#68736d}
.auth-entry-option:is(:hover,:focus-visible,:active){background:var(--surface-hover);border-color:var(--green);filter:none}
.auth-entry-option:focus-visible,.auth-recovery-link:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.auth-entry-options[hidden],.auth-entry-back[hidden]{display:none!important}
.auth-entry-back{margin:0!important}
.auth-entry-back + #email-step{margin-top:12px}
.auth-methods-secondary{margin:24px 0 0;padding:20px 0 0;border-top:1px solid #cfdfd6}
.auth-methods-secondary .auth-methods-label{font-size:14px;color:#68736d}
.auth-methods-secondary .auth-method-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
body .auth-recovery-link{display:block;width:auto;max-width:100%;min-height:44px;margin:12px 0 0;padding:8px 0;border:0;background:none;color:var(--green);font:400 14px/1.6 Manrope,sans-serif;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;filter:none}
@media(max-width:440px){.auth-entry-option{padding:16px}.auth-methods-secondary .auth-method-buttons{grid-template-columns:1fr}}
