/* SwiftRunner authentication polish — V4.3.11 auth recovery patch */
html:has(body.auth-page), body.auth-page{min-height:100%;background:#07131b}
body.auth-page{position:relative;isolation:isolate;background:#07131b;color:#111827}
body.auth-page::before{content:"";position:fixed;inset:0;z-index:-2;background-image:url("../images/runner-car-hero.svg");background-position:center;background-size:cover;background-repeat:no-repeat;transform:scale(1.015)}
body.auth-page::after{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(115deg,rgba(3,10,16,.88) 0%,rgba(5,16,24,.72) 45%,rgba(7,19,27,.88) 100%)}
body.auth-page .auth-container{width:100%;max-width:none;min-height:calc(100dvh - 1px);padding:clamp(18px,4vh,42px) 16px;display:flex;align-items:center;justify-content:center;background:transparent}
body.auth-page .auth-shell{width:100%;max-width:520px;margin:0 auto;padding:0}
body.auth-page .auth-shell:has(#regForm){max-width:720px}
body.auth-page .auth-container:has(#regForm){align-items:flex-start}
body.auth-page .auth-card{width:100%;max-width:100%;padding:clamp(22px,4vw,36px);border:1px solid rgba(255,255,255,.75);border-radius:28px;background:rgba(255,255,255,.97);box-shadow:0 28px 90px rgba(0,0,0,.36);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
body.auth-page .auth-brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0 0 25px}
body.auth-page .auth-logo-plate{width:min(100%,290px);min-height:66px;justify-content:flex-start;padding:4px 0;background:transparent;border:0;box-shadow:none;border-radius:0}
body.auth-page .auth-logo{width:min(100%,260px)!important;height:auto!important;max-height:68px!important;object-fit:contain;object-position:left center}
body.auth-page .auth-brand-copy{display:none}
body.auth-page .auth-intro{margin:0 0 24px}
body.auth-page .auth-intro h1,body.auth-page .auth-step-intro h2,body.auth-page .public-auth-heading h1{color:#101828;font-size:clamp(29px,5vw,38px);line-height:1.08;letter-spacing:-.045em;font-weight:900;margin:0 0 10px}
body.auth-page .auth-intro p,body.auth-page .auth-step-intro p,body.auth-page .public-auth-heading p{color:#667085;line-height:1.55;font-size:14px}
body.auth-page .auth-eyebrow{color:#c8102e;font-size:10px;letter-spacing:.17em;font-weight:900}
body.auth-page .auth-form-v342,body.auth-page .auth-card form{gap:16px}
body.auth-page .auth-field label,body.auth-page .auth-card .field label{color:#344054;font-size:12px;font-weight:800}
body.auth-page .auth-field input,body.auth-page .auth-card .field input,body.auth-page .auth-card .field select,body.auth-page .auth-card .field textarea,body.auth-page .phone-entry input{min-height:52px;border:1px solid #d8dee8;border-radius:14px;background:#fff;color:#101828;padding:13px 14px;box-shadow:0 1px 2px rgba(16,24,40,.025);transition:border-color .16s ease,box-shadow .16s ease}
body.auth-page .auth-field input:focus,body.auth-page .auth-card .field input:focus,body.auth-page .auth-card .field select:focus,body.auth-page .auth-card .field textarea:focus,body.auth-page .phone-entry input:focus{outline:none;border-color:#e50914;box-shadow:0 0 0 4px rgba(229,9,20,.11)}
body.auth-page .password-input-wrap{grid-template-columns:minmax(0,1fr) 70px;gap:8px}
body.auth-page .password-toggle{min-height:48px;border-radius:12px;border-color:#d8dee8;background:#f8fafc;color:#344054}
body.auth-page .auth-submit,body.auth-page .auth-submit-v342{min-height:54px;border-radius:14px;background:linear-gradient(135deg,#f21b32,#c90019);box-shadow:0 10px 22px rgba(229,9,20,.2);transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease}
body.auth-page .auth-submit:not(:disabled):hover,body.auth-page .auth-submit-v342:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 13px 26px rgba(229,9,20,.25)}
body.auth-page .auth-submit:disabled,body.auth-page .auth-submit-v342:disabled{cursor:wait;opacity:.72}
body.auth-page .auth-submit.is-loading span:first-child::before{content:"";display:inline-block;width:13px;height:13px;margin-right:9px;vertical-align:-2px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:runnerAuthSpin .7s linear infinite}
@keyframes runnerAuthSpin{to{transform:rotate(360deg)}}
body.auth-page .auth-help-row{justify-content:space-between;gap:12px;margin:20px 0;font-size:12px}
body.auth-page .auth-help-row a{color:#c8102e}
body.auth-page .auth-trust{background:#f8fafc;border-color:#e6eaf0;border-radius:15px}
body.auth-page .alert{border-radius:13px;line-height:1.5;overflow-wrap:anywhere}
body.auth-page .steps.auth-steps-v342{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 22px}
body.auth-page .steps.auth-steps-v342 .step{min-width:0;display:flex;align-items:center;gap:7px;padding:9px 8px;border:1px solid #e7eaf0;border-radius:12px;background:#f8fafc;color:#667085;font-size:11px;font-weight:750}
body.auth-page .steps.auth-steps-v342 .step b{flex:0 0 25px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#e9edf2;color:#475467}
body.auth-page .steps.auth-steps-v342 .step.active{border-color:#fecdd3;background:#fff1f2;color:#a30c25}
body.auth-page .steps.auth-steps-v342 .step.active b{background:#e50914;color:#fff}
body.auth-page .auth-section-label{margin:10px 0 5px}
body.auth-page .auth-section-label b{color:#101828}
body.auth-page .auth-section-label small,body.auth-page .muted{color:#667085;line-height:1.45}
body.auth-page .auth-card .secure-note{border-radius:14px;background:#fff5f6;border-color:#ffe0e4;line-height:1.5}
body.auth-page .terms-consent{padding:12px;border:1px solid #e6eaf0;border-radius:13px;background:#fafbfc;line-height:1.5}
body.auth-page .terms-check{align-items:flex-start}
body.auth-page .terms-check input{width:18px;height:18px;accent-color:#e50914}
body.auth-page .country-search-wrap,body.auth-page .phone-entry{min-width:0}
body.auth-page .country-search-results{z-index:20}
body.auth-page .auth-button-stack{display:grid;gap:10px}
body.auth-page .auth-button-stack .btn.secondary{min-height:48px;border-radius:13px}
body.auth-page .auth-register-brand{margin-bottom:20px}
body.auth-page .auth-register-brand .auth-logo-plate{margin-bottom:10px}
@media(min-width:900px){
 body.auth-page .auth-card-v342{max-width:520px}
 body.auth-page .auth-card-v342:has(#regForm){max-width:720px}
 body.auth-page .auth-card-v342:has(#verifyForm){max-width:520px}
 body.auth-page .auth-card-v342:has(#regForm) .auth-card .row{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 body.auth-page .auth-container{align-items:flex-start;padding:14px 12px calc(24px + env(safe-area-inset-bottom,0px))}
 body.auth-page .auth-shell{max-width:520px}
 body.auth-page .auth-card{padding:22px 17px;border-radius:23px}
 body.auth-page .auth-logo-plate{min-height:54px}
 body.auth-page .auth-logo{max-height:58px!important;width:min(100%,230px)!important}
 body.auth-page .auth-intro h1,body.auth-page .auth-step-intro h2,body.auth-page .public-auth-heading h1{font-size:30px}
 body.auth-page .auth-help-row{justify-content:space-between}
 body.auth-page .steps.auth-steps-v342 .step{flex-direction:column;align-items:flex-start;gap:5px;font-size:10px}
 body.auth-page .auth-card .row{grid-template-columns:minmax(0,1fr);gap:12px}
 body.auth-page .auth-card .row .field{margin:0}
 body.auth-page .password-input-wrap{grid-template-columns:minmax(0,1fr) 64px}
}
@media(max-width:360px){
 body.auth-page .auth-card{padding:19px 14px}
 body.auth-page .auth-intro h1,body.auth-page .auth-step-intro h2,body.auth-page .public-auth-heading h1{font-size:27px}
 body.auth-page .auth-help-row{font-size:11px;gap:8px}
}
@media(prefers-reduced-motion:reduce){body.auth-page *,body.auth-page *::before,body.auth-page *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
