/* Authentication experience — focused, responsive and independent from storefront chrome. */
body:has(.auth-shell) {
    min-height: 100svh;
    background:
        radial-gradient(circle at 14% 8%, rgba(var(--primary-rgb), .17), transparent 34rem),
        radial-gradient(circle at 92% 92%, rgba(var(--primary-rgb), .09), transparent 30rem),
        #000000;
}
body:has(.auth-shell) .navbar,
body:has(.auth-shell) .footer,
body:has(.auth-shell) #announcement-overlay { display: none !important; }
body:has(.auth-shell) main,
body:has(.auth-shell) #main-content { padding: 0; }

.auth-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(480px, 1.08fr);
    color: #f2f3f5;
}
.auth-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100svh;
    padding: clamp(32px, 5vw, 76px);
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.08);
    background: #050505;
}
.auth-showcase::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 38rem;
    aspect-ratio: 1;
    left: -17rem;
    bottom: -19rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), .18);
    filter: blur(30px);
}
.auth-showcase::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 780;
    letter-spacing: -.03em;
}
.auth-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}
.auth-promise { max-width: 540px; }
.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #b5bac1;
    font-size: .78rem;
    font-weight: 760;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.auth-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--primary);
}
.auth-promise h1 {
    max-width: 640px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.35rem, 4.6vw, 5.1rem);
    line-height: .98;
    letter-spacing: -.065em;
}
.auth-promise > p {
    max-width: 500px;
    margin: 0;
    color: #b5bac1;
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.7;
}
.auth-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 40px;
}
.auth-trust-item {
    min-height: 104px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}
.auth-trust-item i {
    display: block;
    margin-bottom: 15px;
    color: var(--primary-hover);
    font-size: 1.05rem;
}
.auth-trust-item strong {
    display: block;
    color: #f2f3f5;
    font-size: .9rem;
    line-height: 1.25;
}
.auth-trust-item span {
    display: block;
    margin-top: 4px;
    color: #80848e;
    font-size: .75rem;
}
.auth-showcase-foot {
    display: flex;
    gap: 22px;
    color: #6d717c;
    font-size: .75rem;
}
.auth-stage {
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: clamp(24px, 5vw, 72px);
    background: #030303;
}
.auth-panel {
    width: min(100%, 470px);
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background: #080808;
    box-shadow: 0 30px 80px rgba(0,0,0,.32);
}
.auth-mobile-brand { display: none; }
.auth-panel-head { margin-bottom: 30px; }
.auth-panel-head h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    letter-spacing: -.045em;
}
.auth-panel-head p {
    margin: 0;
    color: #949ba4;
    font-size: .94rem;
    line-height: 1.55;
}
.auth-status,
.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 13px 14px;
    border: 1px solid;
    border-radius: 13px;
    font-size: .86rem;
    line-height: 1.45;
}
.auth-status {
    color: #b7f7ce;
    border-color: rgba(35, 165, 90, .28);
    background: rgba(35, 165, 90, .09);
}
.auth-error {
    color: #ffd4d6;
    border-color: rgba(242, 63, 66, .3);
    background: rgba(242, 63, 66, .09);
}
.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.auth-field label {
    color: #dbdee1;
    font-size: .82rem;
    font-weight: 680;
}
.auth-field a {
    color: var(--primary-hover);
    font-size: .78rem;
    text-decoration: none;
}
.auth-control {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-control > i {
    position: absolute;
    left: 15px;
    color: #6d7480;
    pointer-events: none;
}
.auth-control input {
    width: 100%;
    min-height: 50px;
    padding: 0 45px 0 44px;
    color: #f2f3f5;
    border: 1px solid #252525;
    border-radius: 12px;
    outline: 0;
    background: #030303;
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-control input::placeholder { color: #626873; }
.auth-control input:hover { border-color: #3a3a3a; }
.auth-control input:focus {
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.15);
    background: #000000;
}
.auth-toggle {
    position: absolute;
    right: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #949ba4;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
}
.auth-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.auth-help {
    margin: 0;
    color: #7e838d;
    font-size: .75rem;
    line-height: 1.45;
}
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: var(--primary);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb),.2);
    font: inherit;
    font-weight: 760;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.auth-submit:hover {
    transform: translateY(-1px);
    background: var(--primary-hover);
    box-shadow: 0 15px 34px rgba(var(--primary-rgb),.28);
}
.auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-switch {
    margin: 26px 0 0;
    color: #949ba4;
    text-align: center;
    font-size: .86rem;
}
.auth-switch a { color: var(--primary-hover); font-weight: 700; text-decoration: none; }
.auth-switch a:hover,
.auth-field a:hover { text-decoration: underline; }
.auth-legal {
    margin: 2px 0 0;
    color: #777d87;
    font-size: .72rem;
    line-height: 1.55;
    text-align: center;
}
.auth-legal a { color: var(--primary-hover); }
.password-meter {
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #181818;
}
.password-meter > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #f23f42;
    transition: width .2s ease, background .2s ease;
}
.password-meter-label {
    min-height: 16px;
    color: #777d87;
    font-size: .72rem;
}

@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-showcase { display: none; }
    .auth-stage { padding: 20px; }
    .auth-panel { border-radius: 18px; }
    .auth-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
        color: #fff;
        text-decoration: none;
        font-weight: 780;
    }
    .auth-mobile-brand img {
        width: 38px;
        height: 38px;
        object-fit: contain;
        border-radius: 11px;
    }
}
@media (max-width: 520px) {
    .auth-stage { align-items: start; padding: 0; background: #17191f; }
    .auth-panel {
        min-height: 100svh;
        padding: 28px 20px;
        border: 0;
        border-radius: 0;
        background: #050505;
        box-shadow: none;
    }
    .auth-panel-head { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-submit,
    .auth-control input { transition: none; }
}
