:root{--navy:#021d49;--blue:#058fe8;--blue-dark:#047ac7;--cyan:#08b8ca;--green:#0f9f65;--ink:#061d40;--muted:#5d7089;--line:#d7e8ee;--ice:#f2fbfe;--white:#fff;--danger:#c83942;--danger-bg:#fff4f4;--success:#087a51;--success-bg:#ecfbf4}
*{box-sizing:border-box}
html{min-width:320px;background:#f7fbfd}
body{min-height:100vh;margin:0;display:grid;grid-template-rows:auto 1fr auto;color:var(--ink);font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button,a,input{outline-offset:3px}
:focus-visible{outline:3px solid rgba(5,143,232,.28);outline-offset:2px}
.auth-header{position:relative;z-index:2;min-height:72px;padding:12px clamp(20px,4vw,58px);display:flex;align-items:center;justify-content:flex-end;background:rgba(255,255,255,.9);border-bottom:1px solid rgba(215,232,238,.85);backdrop-filter:blur(12px)}.auth-preferences{display:flex;align-items:center;gap:8px}.auth-preferences select{max-width:180px}
.header-logo{display:none}.header-logo img{width:100%;height:100%;object-fit:contain}
.back-home{display:flex;align-items:center;gap:6px;color:#405674;font-size:.88rem;font-weight:700}.back-home:hover{color:var(--blue)}.back-home svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.auth-main{position:relative;isolation:isolate;display:grid;place-items:center;padding:44px 20px 52px;overflow:hidden;background:linear-gradient(145deg,#f8fcfe 0%,#edfaff 52%,#f9fdfd 100%)}
.auth-main:before{content:"";position:absolute;z-index:-2;inset:0;background-image:radial-gradient(circle at 1px 1px,rgba(5,143,232,.11) 1px,transparent 0);background-size:25px 25px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 70%)}
.ambient{position:absolute;z-index:-1;border-radius:50%;filter:blur(2px);pointer-events:none}.ambient-one{width:420px;height:420px;top:-230px;right:-100px;background:radial-gradient(circle,rgba(24,216,200,.16),transparent 70%)}.ambient-two{width:480px;height:480px;bottom:-300px;left:-180px;background:radial-gradient(circle,rgba(5,143,232,.13),transparent 70%)}
.auth-card{width:min(100%,460px);padding:34px 38px 30px;background:rgba(255,255,255,.97);border:1px solid rgba(204,226,235,.95);border-radius:24px;box-shadow:0 24px 70px rgba(2,29,73,.09),0 3px 12px rgba(2,29,73,.04)}
.auth-card-compact{width:min(100%,440px)}
.card-brand{display:flex;height:50px;margin:0 auto 14px;justify-content:center}.card-brand img{height:100%;width:auto;object-fit:contain}
.auth-heading{text-align:center;margin-bottom:26px}.secure-label{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-size:.72rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.secure-label svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.auth-heading h1{margin:10px 0 8px;font-size:clamp(1.7rem,4vw,2rem);line-height:1.14;letter-spacing:-.04em}.auth-heading p{margin:0 auto;max-width:360px;color:var(--muted);font-size:.94rem;line-height:1.55}
.google-button,.primary-button{position:relative;width:100%;min-height:52px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:11px;font-weight:780;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;cursor:pointer}
.google-button{border:1px solid #cbdde6;background:#fff;color:#1b3454;box-shadow:0 2px 8px rgba(2,29,73,.04)}.google-button>svg{position:absolute;left:17px;width:22px;height:22px}.google-button:hover{transform:translateY(-1px);border-color:#a9c8d8;box-shadow:0 8px 22px rgba(2,29,73,.08)}
.primary-button{border:0;color:#fff;background:linear-gradient(120deg,var(--blue),var(--cyan));box-shadow:0 10px 25px rgba(5,143,232,.22)}.primary-button:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(5,143,232,.3)}.primary-button:disabled,.google-button.is-loading{opacity:.7;pointer-events:none;transform:none}
.spinner{display:none;width:18px;height:18px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;animation:spin .75s linear infinite}.google-button .spinner{border-color:rgba(5,143,232,.2);border-top-color:var(--blue)}.is-loading .spinner{display:block}.is-loading>span{opacity:.7}.is-loading>svg{opacity:.45}@keyframes spin{to{transform:rotate(360deg)}}
.divider{height:49px;display:flex;align-items:center;gap:12px;color:#8090a4;font-size:.76rem;white-space:nowrap}.divider:before,.divider:after{content:"";height:1px;flex:1;background:var(--line)}
.auth-form{display:grid;gap:18px}.field{display:grid;gap:7px}.field label,.label-row{font-size:.85rem;font-weight:760;color:#1a3455}.label-row{display:flex;align-items:center;justify-content:space-between}.label-row a{color:var(--blue);font-size:.79rem;font-weight:750}.label-row a:hover,.switch-auth a:hover{text-decoration:underline;text-underline-offset:3px}
.field input{width:100%;height:50px;padding:0 14px;border:1px solid #cddfe7;border-radius:11px;background:#fff;color:var(--ink);transition:border-color .15s,box-shadow .15s}.field input::placeholder{color:#93a3b4}.field input:hover{border-color:#abc8d5}.field input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(5,143,232,.1);outline:0}.field-error input{border-color:#e49ba0;background:#fffafa}.field-message{color:var(--danger);font-size:.78rem;font-weight:650}.field-hint{color:#71849a;font-size:.76rem}
.password-wrap{position:relative}.password-wrap input{padding-right:50px}.toggle-password{position:absolute;right:5px;top:5px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#60758d;cursor:pointer}.toggle-password:hover{background:#eff8fb;color:var(--blue)}.toggle-password svg{grid-area:1/1;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.toggle-password .eye-closed{display:none}.toggle-password[aria-pressed="true"] .eye-open{display:none}.toggle-password[aria-pressed="true"] .eye-closed{display:block}
.remember{display:flex;align-items:center;gap:9px;color:#536982;font-size:.82rem;cursor:pointer}.remember input{width:17px;height:17px;margin:0;accent-color:var(--blue)}
.switch-auth{text-align:center;margin:22px 0 0;color:#62758b;font-size:.87rem}.switch-auth a{color:var(--blue);font-weight:800}
.privacy-note{margin:24px -8px -5px;padding:15px 12px 0;border-top:1px solid #e7f0f3;display:flex;align-items:flex-start;justify-content:center;gap:8px;color:#74869a}.privacy-note svg{flex:0 0 auto;width:16px;height:16px;margin-top:2px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.privacy-note p{margin:0;max-width:330px;font-size:.72rem;line-height:1.5}.privacy-note a{text-decoration:underline;text-underline-offset:2px}
.notice{margin:-8px 0 20px;padding:11px 13px;border-radius:10px;font-size:.83rem;font-weight:650}.notice-error{color:var(--danger);background:var(--danger-bg);border:1px solid #f0c5c8}.notice-success{color:var(--success);background:var(--success-bg);border:1px solid #bfe9d6}
.auth-footer{min-height:68px;padding:17px clamp(20px,4vw,58px);display:flex;align-items:center;justify-content:space-between;gap:18px;color:#6f8298;background:#fff;border-top:1px solid #e2edf1;font-size:.75rem}.auth-footer nav{display:flex;gap:22px}.auth-footer a:hover{color:var(--blue)}
@media(max-width:600px){.auth-header{min-height:52px;padding:6px 18px}.back-home{font-size:0}.back-home svg{width:22px;height:22px}.auth-main{place-items:start center;padding:22px 14px 30px}.auth-card{padding:25px 20px 23px;border-radius:19px}.auth-heading{margin-bottom:22px}.auth-heading h1{margin-top:7px}.auth-heading p{font-size:.88rem}.auth-footer{padding:16px 18px;justify-content:center;text-align:center;flex-wrap:wrap}.auth-footer nav{gap:16px}.privacy-note{margin-top:20px}.google-button,.primary-button{min-height:52px}.field input{height:50px}}
@media(max-width:350px){.auth-main{padding-inline:10px}.auth-card{padding-inline:16px}.auth-footer{font-size:.69rem}.auth-footer nav{gap:11px}.divider{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Compact purchase authentication reuses the existing secure login routes. */
.purchase-auth .auth-main{min-height:0;padding:16px;display:block}.purchase-auth .auth-card{width:min(100%,440px);margin:0 auto;padding:22px;border-radius:18px}.purchase-auth .card-brand,.purchase-auth .ambient,.purchase-auth .secure-label,.purchase-auth .privacy-note,.purchase-auth .remember{display:none}.purchase-auth .auth-heading{margin-bottom:14px}.purchase-auth .auth-heading h1{font-size:1.65rem;margin:0 0 6px}.purchase-auth .auth-heading p{font-size:.9rem;margin:0}.purchase-auth .auth-header{padding-block:12px}.purchase-auth .auth-footer{padding:16px}.auth-purchase-context{display:grid;gap:4px;padding:12px;margin:12px 0;background:#f1f7fc;border-radius:10px;font-size:.85rem;overflow-wrap:anywhere}.auth-purchase-context a{font-size:.8rem}.auth-email-choice>summary{min-height:48px;align-content:center;cursor:pointer;text-align:center;border:1px solid #b8d2e3;border-radius:10px;font-weight:700;list-style:none}.auth-email-choice[open]>summary{margin-bottom:12px}.purchase-auth .divider{display:none}.purchase-auth .google-button{margin-bottom:10px}.purchase-auth .auth-form{gap:12px}.purchase-auth .switch-auth{margin:14px 0 0}.purchase-auth .auth-form input{font-size:16px}.purchase-auth .auth-preferences{max-width:100%;min-width:0}.purchase-auth .auth-preferences select{min-width:0}
@media(max-width:430px){.purchase-auth .auth-card{padding:17px}.purchase-auth .auth-heading h1{font-size:1.4rem}.purchase-auth .auth-header{flex-wrap:wrap;gap:8px;padding:10px 15px}.purchase-auth .auth-header .back-home{display:none}.purchase-auth .auth-preferences{margin-left:auto}.purchase-auth .auth-preferences select{max-width:95px}}
.purchase-auth .header-logo{display:block;width:96px;height:40px;margin-right:auto;flex:0 0 96px}.purchase-auth .back-home{display:none}

.auth-purchase-destination{display:flex;align-items:center;gap:12px;min-width:0;margin-bottom:6px}
.auth-purchase-destination img{display:block;width:72px;height:56px;flex:0 0 72px;object-fit:cover;border-radius:8px}
.auth-purchase-destination strong{min-width:0;overflow-wrap:anywhere}

/* Shared solid brand surfaces; validation success and error colors remain semantic. */
:root{--blue:var(--brand-primary);--blue-dark:var(--brand-hover);--navy:var(--brand-navy);--cyan:var(--brand-teal);--line:var(--brand-border)}
.auth-main{background:var(--brand-surface)}.auth-main:before,.ambient{display:none}.auth-header{background:#fff;backdrop-filter:none}.primary-button{background:var(--brand-primary);box-shadow:none}.primary-button:hover{background:var(--brand-hover);box-shadow:none;transform:none}:focus-visible{outline:3px solid var(--brand-teal);outline-offset:3px}
