.store-auth {
    --sa-ink: #0f172a;
    --sa-body: #475569;
    --sa-muted: #94a3b8;
    --sa-line: #e2e8f0;
    --sa-brand: #4f46e5;
    --sa-brand-dark: #3730a3;
    --sa-brand-soft: #eef2ff;
    --sa-danger: #dc2626;

    position: fixed;
    inset: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: clamp(16px, 4vw, 48px);
    background:
        radial-gradient(1100px 620px at 8% -10%, rgba(99, 102, 241, 0.34), transparent 60%),
        radial-gradient(900px 540px at 102% 104%, rgba(34, 211, 238, 0.2), transparent 58%),
        linear-gradient(140deg, #070b18 0%, #0b1024 48%, #0a0f1f 100%);
    color: var(--sa-ink);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.store-auth *,
.store-auth *::before,
.store-auth *::after {
    box-sizing: border-box;
}

.store-auth__shell {
    position: relative;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    width: min(1060px, 100%);
    min-height: min(680px, calc(100vh - clamp(32px, 8vw, 96px)));
    overflow: hidden;
    background: #ffffff;
    border-radius: 30px;
    box-shadow:
        0 50px 100px -30px rgba(2, 6, 23, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.store-auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    overflow: hidden;
    padding: clamp(32px, 4.6vw, 56px);
    color: #f8fafc;
    background:
        radial-gradient(560px 420px at 82% 8%, rgba(129, 140, 248, 0.55), transparent 62%),
        radial-gradient(420px 360px at 0% 100%, rgba(34, 211, 238, 0.28), transparent 62%),
        linear-gradient(155deg, #1e1b4b 0%, #312e81 46%, #4338ca 100%);
}

.store-auth__brand::before,
.store-auth__brand::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.store-auth__brand::before {
    width: 360px;
    height: 360px;
    right: -170px;
    bottom: -150px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 42px rgba(255, 255, 255, 0.03);
}

.store-auth__brand::after {
    width: 220px;
    height: 220px;
    right: 40px;
    top: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.store-auth__brand-top {
    position: relative;
    z-index: 1;
}

.store-auth__logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    margin-bottom: 48px;
}

.store-auth__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.26),
        0 12px 30px -12px rgba(2, 6, 23, 0.65);
}

.store-auth__logo-mark svg {
    width: 26px;
    height: 26px;
}

.store-auth__logo-text {
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(20px, 2.1vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-auth__eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(238, 242, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-auth__headline {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.store-auth__headline span {
    color: #c7d2fe;
}

.store-auth__lead {
    max-width: 380px;
    margin: 0 0 32px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 15px;
    line-height: 1.65;
}

.store-auth__features {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.store-auth__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(241, 245, 249, 0.92);
    font-size: 14.5px;
    line-height: 1.4;
}

.store-auth__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    color: #a5f3fc;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.store-auth__check svg {
    width: 15px;
    height: 15px;
}

.store-auth__copyright {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(199, 210, 254, 0.6);
    font-size: 12.5px;
}

.store-auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 4.6vw, 56px);
    background:
        radial-gradient(520px 380px at 100% 0%, rgba(238, 242, 255, 0.9), transparent 62%),
        #ffffff;
}

.store-auth__form-wrap {
    width: 100%;
    max-width: 400px;
}

.store-auth__form-head {
    margin-bottom: 32px;
}

.store-auth__badge {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--sa-brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.store-auth__form-head h2 {
    margin: 0 0 10px;
    color: var(--sa-ink);
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.store-auth__form-head p {
    margin: 0;
    color: var(--sa-body);
    font-size: 14.5px;
    line-height: 1.6;
}

.store-auth__form {
    display: grid;
    gap: 20px;
}

.store-auth__field {
    display: grid;
    gap: 8px;
}

.store-auth__label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.store-auth__input {
    position: relative;
}

.store-auth__input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    display: inline-flex;
    color: #94a3b8;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 0.18s ease;
}

.store-auth__input-icon svg {
    width: 19px;
    height: 19px;
}

.store-auth__control {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 48px;
    border: 1.5px solid var(--sa-line);
    border-radius: 15px;
    outline: none;
    background: #f8fafc;
    color: var(--sa-ink);
    font-size: 15px;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.store-auth__control--password {
    padding-right: 52px;
}

.store-auth__control::placeholder {
    color: var(--sa-muted);
}

.store-auth__control:hover {
    border-color: #cbd5e1;
}

.store-auth__control:focus {
    border-color: var(--sa-brand);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.store-auth__input:focus-within .store-auth__input-icon {
    color: var(--sa-brand);
}

.store-auth__control.is-invalid {
    border-color: var(--sa-danger);
    background: #fef2f2;
}

.store-auth__control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.store-auth__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.store-auth__toggle:hover {
    color: var(--sa-brand);
    background: var(--sa-brand-soft);
}

.store-auth__toggle svg {
    width: 19px;
    height: 19px;
}

.store-auth__eye-off,
.store-auth__toggle.is-visible .store-auth__eye {
    display: none;
}

.store-auth__toggle.is-visible .store-auth__eye-off {
    display: block;
}

.store-auth__error {
    margin: 0;
    color: var(--sa-danger);
    font-size: 12.5px;
    line-height: 1.45;
}

.store-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.store-auth__checkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--sa-body);
    font-size: 13.5px;
    cursor: pointer;
    user-select: none;
}

.store-auth__checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 5px;
    accent-color: var(--sa-brand);
    cursor: pointer;
}

.store-auth__link {
    color: var(--sa-brand);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.store-auth__link:hover {
    color: var(--sa-brand-dark);
    text-decoration: underline;
}

.store-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 55%, #3730a3 100%);
    box-shadow: 0 18px 32px -16px rgba(67, 56, 202, 0.85);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.store-auth__submit svg {
    width: 19px;
    height: 19px;
    transition: transform 0.18s ease;
}

.store-auth__submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 22px 38px -16px rgba(67, 56, 202, 0.95);
    transform: translateY(-1px);
}

.store-auth__submit:hover svg {
    transform: translateX(2px);
}

.store-auth__submit:active {
    transform: translateY(0);
}

.store-auth__submit:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 3px;
}

.store-auth__help {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--sa-line);
    color: var(--sa-muted);
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
}

.store-auth__lock {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--sa-line);
    border-radius: 16px;
    background: #f8fafc;
}

.store-auth__avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sa-brand-soft);
}

.store-auth__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-auth__lock-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.store-auth__lock-name {
    overflow: hidden;
    color: var(--sa-ink);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-auth__lock-sub {
    overflow: hidden;
    color: var(--sa-muted);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 920px) {
    .store-auth {
        align-items: flex-start;
    }

    .store-auth__shell {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 24px;
    }

    .store-auth__brand {
        gap: 28px;
        padding: 32px;
    }

    .store-auth__logo {
        margin-bottom: 28px;
    }

    .store-auth__headline {
        font-size: clamp(26px, 6vw, 34px);
    }

    .store-auth__lead {
        margin-bottom: 0;
    }

    .store-auth__features {
        display: none;
    }

    .store-auth__copyright {
        display: none;
    }

    .store-auth__panel {
        padding: 32px;
    }
}

@media (max-width: 520px) {
    .store-auth {
        padding: 0;
    }

    .store-auth__shell {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }

    .store-auth__brand {
        padding: 28px 24px;
    }

    .store-auth__panel {
        padding: 28px 24px 36px;
    }

    .store-auth__form-head {
        margin-bottom: 24px;
    }

    .store-auth__form {
        gap: 16px;
    }
}
