:root {
    color-scheme: dark;
    --auth-bg: #101014;
    --auth-panel: #18181c;
    --auth-input: #26262b;
    --auth-input-border: #6f7079;
    --auth-input-border-focus: #a3a4ad;
    --auth-text: #f5f5f7;
    --auth-muted: #a8a8af;
    --auth-line: #33333a;
    --auth-blue: #2db7f5;
    --auth-blue-hover: #51c8ff;
    --auth-error: #ff9a9a;
    --auth-success: #8fd9b2;
    --auth-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

body.auth-page {
    background: var(--auth-bg);
}

body.auth-page .ambient-glow,
body.auth-page .summer-icon-fall,
body.auth-page .activity-popup,
body.auth-page .storefront-global-header,
body.auth-page .header-wrapper,
body.auth-page .product-site-footer {
    display: none !important;
}

body.auth-page .page-shell {
    min-height: 100vh;
    background: var(--auth-bg);
}

.auth-page-main--experience {
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: 38px 24px 56px;
    color: var(--auth-text);
    background: var(--auth-bg);
    font-family: Arial, Helvetica, sans-serif;
}

.auth-experience-section {
    width: 100%;
}

.auth-shell {
    width: min(100%, 704px);
    max-width: none;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    width: 100%;
}

.auth-card,
.auth-flow-dialog {
    width: 100%;
    border: 1px solid var(--auth-line);
    border-radius: 28px;
    background: var(--auth-panel);
    box-shadow: var(--auth-shadow);
}

.auth-card {
    display: none;
    max-width: 704px;
    min-height: 462px;
    padding: 60px 60px 38px;
}

.auth-card.is-active {
    display: block;
    animation: authCardIn 0.22s ease both;
}

.auth-card-head {
    display: grid;
    justify-items: center;
    gap: 30px;
    margin-bottom: 42px;
    text-align: center;
}

.auth-card-head--modal {
    margin-bottom: 34px;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 124px;
    min-height: 54px;
    text-decoration: none;
}

.auth-logo {
    width: 124px;
    max-height: 54px;
    display: block;
    object-fit: contain;
}

.auth-card-title {
    max-width: 520px;
    margin: 0 auto;
    color: var(--auth-text);
    font-size: clamp(1.62rem, 1.05vw + 1.28rem, 2rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.auth-form {
    display: grid;
    gap: 24px;
}

.auth-field {
    display: grid;
}

.auth-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    border: 1px solid var(--auth-input-border);
    border-radius: 10px;
    background: var(--auth-input);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-input-shell:focus-within {
    border-color: var(--auth-input-border-focus);
    box-shadow: 0 0 0 1px var(--auth-input-border-focus);
}

.auth-input-shell input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-text);
    padding: 0 26px;
    font-size: 1.22rem;
    font-weight: 500;
    letter-spacing: 0;
    appearance: none;
    -webkit-appearance: none;
}

.auth-input-shell--password input {
    padding-right: 62px;
}

.auth-input-shell input::placeholder {
    color: var(--auth-muted);
    opacity: 1;
}

.auth-input-shell input:-webkit-autofill,
.auth-input-shell input:-webkit-autofill:hover,
.auth-input-shell input:-webkit-autofill:focus,
.auth-input-shell input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--auth-text);
    -webkit-box-shadow: 0 0 0 1000px var(--auth-input) inset;
    box-shadow: 0 0 0 1000px var(--auth-input) inset;
    caret-color: var(--auth-text);
    transition: background-color 9999s ease-in-out 0s;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d7d7dc;
    background: transparent;
    transform: translateY(-50%);
    transition: background 0.16s ease, color 0.16s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible,
.auth-password-toggle.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.auth-button {
    min-height: 60px;
    border-radius: 10px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: #030304;
    background: var(--auth-blue);
    font-size: 1.24rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease;
}

.auth-button:hover,
.auth-button:focus-visible {
    background: var(--auth-blue-hover);
    transform: translateY(-1px);
    outline: none;
}

.auth-button--ghost {
    border: 1px solid #4b4b53;
    color: var(--auth-text);
    background: transparent;
}

.auth-button--ghost:hover,
.auth-button--ghost:focus-visible {
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.07);
}

.auth-button--full {
    width: 100%;
}

.auth-status[hidden],
.auth-flow-overlay[hidden],
.auth-reset-block[hidden] {
    display: none !important;
}

.auth-status {
    min-height: 22px;
    margin: -8px 0 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.auth-status.is-success {
    color: var(--auth-success);
}

.auth-status.is-error {
    color: var(--auth-error);
}

.auth-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 24px;
    color: var(--auth-muted);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

.auth-links-row--secondary {
    margin-top: 14px;
    font-size: 0.98rem;
}

.auth-text-link {
    border: 0;
    padding: 0;
    color: var(--auth-blue);
    background: transparent;
    font: inherit;
    text-decoration: none;
    transition: color 0.16s ease;
}

.auth-text-link:hover,
.auth-text-link:focus-visible {
    color: var(--auth-blue-hover);
    outline: none;
}

.auth-text-link--muted {
    font-weight: 600;
}

.auth-flow-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: start center;
    padding: 38px 24px;
    overflow-y: auto;
}

.auth-flow-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(16, 16, 20, 0.82);
    backdrop-filter: blur(8px);
}

.auth-flow-dialog {
    position: relative;
    width: min(100%, 704px);
    padding: 60px 60px 42px;
}

.auth-flow-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-muted);
    background: transparent;
    transition: background 0.16s ease, color 0.16s ease;
}

.auth-flow-close:hover,
.auth-flow-close:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.auth-flow-shell {
    display: grid;
}

.auth-stage-panel {
    display: none;
}

.auth-stage-panel.is-active {
    display: block;
    animation: authCardIn 0.22s ease both;
}

.auth-highlight-card {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--auth-line);
    background: rgba(255, 255, 255, 0.035);
}

.auth-highlight-card__label {
    display: block;
    margin-bottom: 5px;
    color: var(--auth-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-highlight-card strong {
    display: block;
    color: var(--auth-text);
    font-size: 0.98rem;
    font-weight: 700;
    word-break: break-word;
}

.auth-highlight-card__meta {
    color: var(--auth-blue);
    font-size: 0.92rem;
    line-height: 1.4;
}

.auth-reset-block {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--auth-line);
}

body.auth-flow-open {
    overflow: hidden;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .auth-page-main--experience,
    .auth-flow-overlay {
        padding: 18px 12px 36px;
    }

    .auth-card,
    .auth-flow-dialog {
        border-radius: 18px;
        padding: 38px 22px 28px;
    }

    .auth-card-head {
        gap: 22px;
        margin-bottom: 30px;
    }

    .auth-logo,
    .auth-logo-link {
        width: 112px;
        min-height: 48px;
    }

    .auth-card-title {
        font-size: 1.56rem;
    }

    .auth-form {
        gap: 18px;
    }

    .auth-input-shell,
    .auth-button {
        min-height: 54px;
    }

    .auth-input-shell input {
        min-height: 52px;
        padding-inline: 18px;
        font-size: 1rem;
    }

    .auth-links-row {
        flex-wrap: wrap;
        font-size: 0.98rem;
    }
}
