/* Centered authentication card; the signed-in customer panel keeps its layout. */
html:not(.has-sess) .account-page .auth-page {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: 100svh;
    padding: 136px 0 80px;
    overflow: clip;
}
html:not(.has-sess) .account-page .auth-page > .container { width: 100%; }
html:not(.has-sess) .account-page .scanlines { display: none; }
html:not(.has-sess) .account-page .grain { opacity: 0.014; }
#authGate {
    display: block;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
#authGate .auth-card {
    position: relative;
    padding: 32px 28px 28px;
    border: 0;
    border-radius: 12px;
    background: #111113;
    box-shadow: none;
    animation: auth-card-enter 400ms cubic-bezier(0.22,1,0.36,1) both;
}
#authGate .auth-card-head { text-align: center; margin-bottom: 28px; }
#authGate .auth-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
#authGate .auth-brand-lockup > img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
#authGate .auth-wordmark {
    color: #ededf0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.045em;
}
#authGate .auth-wordmark > span { color: #ea2948; }
#authGate .auth-card-head h1 { color: #f0f0f3; font-size: 24px; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
#authGate .auth-card-head p { margin-top: 8px; color: #93939e; font-size: 12px; line-height: 1.7; }
#authGate .field { margin-bottom: 12px; }
#authGate .field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
#authGate .auth-input { position: relative; }
#authGate .auth-input > svg { position: absolute; top: 50%; left: 14px; width: 17px; height: 17px; transform: translateY(-50%); color: #757580; pointer-events: none; transition: color 160ms ease; }
#authGate .field input {
    display: block;
    height: 48px;
    padding: 0 14px 0 42px;
    background: #0c0c0e;
    border: 1px solid #252529;
    border-radius: 7px;
    color: #ececf0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
#authGate .field input::placeholder { color: #83838d; opacity: 1; }
#authGate .field input:hover { border-color: #39393f; }
#authGate .field input:focus { outline: none; border-color: #72727d; background: #101012; box-shadow: 0 0 0 3px rgba(255,255,255,0.035); }
#authGate .auth-input:focus-within > svg { color: #c2c2ca; }
#authGate .field input:-webkit-autofill { -webkit-text-fill-color: #ececf0; -webkit-box-shadow: 0 0 0 1000px #101012 inset; caret-color: #ececf0; }
#authGate .auth-recovery { display: flex; justify-content: flex-end; margin: 2px 0 19px; }
#authGate .auth-link { color: #d9d9e0; font-size: inherit; font-weight: 500; text-decoration: none; transition: color 160ms ease; }
#authGate .auth-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
#authGate .auth-recovery .auth-link { color: #a0a0ab; font-size: 11px; font-weight: 400; }
#authGate .auth-panel > .btn {
    width: 100%;
    height: 46px;
    margin-top: 5px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 7px;
    background: #ebebef;
    color: #151518;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}
#authGate .auth-panel > .btn::after { display: none; }
#authGate .auth-panel > .btn:hover:not(:disabled) { background: #fff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.18); }
#authGate .auth-panel > .btn:active:not(:disabled) { background: #d8d8de; transform: translateY(1px); box-shadow: none; }
#authGate .auth-foot { margin-top: 22px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,0.06); color: #878792; font-size: 12px; line-height: 1.7; }
#authGate .auth-foot .auth-link { margin-left: 4px; }
#authGate .auth-lead { color: #9b9ba6; font-size: 12px; line-height: 1.75; margin-bottom: 20px; }
#authGate .auth-err, #authGate .auth-ok { font-size: 12px; line-height: 1.65; border-radius: 7px; margin: 15px 0; }
#authGate .auth-err { background: #201719; border-color: #463037; color: #edb7bb; }
#authGate :is(button,a):focus-visible { outline: 2px solid #bcbcc6; outline-offset: 4px; }
@keyframes auth-card-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
    html:not(.has-sess) .account-page .auth-page { padding: 110px 0 56px; }
    html:not(.has-sess) .account-page .auth-page > .container { padding: 0 20px; }
    #authGate .auth-card { padding: 28px 22px 24px; }
    #authGate .field input { font-size: 16px; }
    #authGate .auth-card-head h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    #authGate .auth-card { animation: none; }
    #authGate *, #authGate *::before, #authGate *::after { transition: none !important; }
    #authGate .auth-panel > .btn:hover:not(:disabled), #authGate .auth-panel > .btn:active:not(:disabled) { transform: none; }
}

/* Quiet monochrome brand mark, kept below the content contrast. */
.account-page .auth-logo-backdrop { display: none; }
html:not(.has-sess) .account-page .auth-logo-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #09090b;
}
.account-page .auth-logo-backdrop > img {
    position: absolute;
    left: 50%;
    top: 52%;
    width: clamp(540px, 68vw, 940px);
    height: auto;
    max-width: none;
    transform: translate(-50%, -50%);
    opacity: 0.07;
    filter: grayscale(1) blur(2px) brightness(0.65);
    -webkit-mask-image: radial-gradient(ellipse closest-side, #000 35%, rgba(0,0,0,0.8) 62%, transparent 100%);
    mask-image: radial-gradient(ellipse closest-side, #000 35%, rgba(0,0,0,0.8) 62%, transparent 100%);
}
.account-page .auth-logo-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, #09090b 0%, rgba(9,9,11,0.1) 22%, transparent 48%, rgba(9,9,11,0.28) 78%, #09090b 100%),
        radial-gradient(ellipse at 50% 50%, transparent 15%, rgba(9,9,11,0.3) 55%, #09090b 100%);
}
@media (max-width: 560px) {
    .account-page .auth-logo-backdrop > img { width: 640px; opacity: 0.045; }
}
