:root {
    --shop-blue: #205ed4;
    --shop-blue-dark: #244ca8;
    --shop-violet: #6553cf;
    --shop-ink: #263754;
    --shop-text: #526078;
    --shop-muted: #7f8ba0;
    --shop-line: #dce5f5;
    --shop-surface: #f5f7ff;
    --shop-danger: #c53f5c;
    --shop-success: #247c68;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 0;
    min-height: 100%;
    margin: 0;
}

body,
button,
input {
    font-family: "Plus Jakarta Sans", sans-serif;
}

body {
    overflow-x: hidden;
    background: #ffffff;
    color: var(--shop-ink);
}

button,
input {
    font: inherit;
}

a {
    color: var(--shop-blue);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    color: var(--shop-violet);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(340px, .92fr) minmax(440px, 1.08fr);
    min-height: 100dvh;
}

.auth-showcase {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #1d59cd 0%, #3e51c7 53%, #6952cc 100%);
    color: #ffffff;
}

.auth-showcase::after {
    position: absolute;
    z-index: -1;
    right: -100px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
}

.auth-showcase__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.auth-showcase__glow--one {
    top: -120px;
    left: -130px;
    width: 360px;
    height: 360px;
    background: rgba(126, 115, 255, .34);
}

.auth-showcase__glow--two {
    right: -110px;
    bottom: 12%;
    width: 310px;
    height: 310px;
    background: rgba(98, 193, 255, .16);
}

.auth-showcase__content {
    display: flex;
    flex-direction: column;
    width: min(100%, 610px);
    min-height: 100dvh;
    margin-inline: auto;
    padding: clamp(34px, 5vw, 72px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    color: var(--shop-ink);
}

.brand:hover {
    color: inherit;
}

.brand img {
    display: block;
    width: 148px;
    height: auto;
}

.brand span {
    padding-left: 14px;
    border-left: 1px solid var(--shop-line);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.brand--light {
    color: #ffffff;
}

.brand--light span {
    border-color: rgba(255, 255, 255, .34);
}

.auth-showcase__message {
    margin-block: auto;
    padding-block: 72px 54px;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--shop-blue);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.auth-kicker--light {
    color: #dfe8ff;
}

.auth-showcase h1 {
    max-width: 540px;
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.auth-showcase__message > p {
    max-width: 530px;
    margin: 0;
    color: #e4eaff;
    font-size: 1rem;
    line-height: 1.75;
}

.auth-showcase__features {
    display: grid;
    gap: 14px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.auth-feature > span {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 22px;
}

.auth-feature strong,
.auth-feature small {
    display: block;
}

.auth-feature strong {
    margin-bottom: 3px;
    font-size: .9rem;
}

.auth-feature small {
    color: #dfe7ff;
    font-size: .76rem;
    line-height: 1.45;
}

.auth-panel {
    display: grid;
    min-width: 0;
    padding: clamp(30px, 6vw, 84px);
    place-items: center;
    background:
        radial-gradient(circle at 92% 8%, rgba(84, 91, 211, .08), transparent 18rem),
        #ffffff;
}

.auth-card {
    width: min(100%, 480px);
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 52px;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h2 {
    margin: 0 0 12px;
    color: var(--shop-ink);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.18;
    letter-spacing: -.035em;
}

.auth-header p {
    margin: 0;
    color: var(--shop-text);
    font-size: .94rem;
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.form-field {
    min-width: 0;
}

.form-field label {
    color: var(--shop-ink);
    font-size: .85rem;
    font-weight: 700;
}

.auth-forgot-link {
    display: inline-block;
    margin-top: 9px;
    font-size: .72rem;
}

.input-shell {
    display: flex;
    min-width: 0;
    height: 54px;
    margin-top: 9px;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border: 1px solid var(--shop-line);
    border-radius: 12px;
    background: var(--shop-surface);
    transition: border-color .18s ease, background-color .18s ease;
}

.input-shell:focus-within {
    border-color: #7b82e5;
    background: #ffffff;
}

.input-shell > .material-icons-sharp {
    flex: 0 0 auto;
    color: #687b99;
    font-size: 21px;
}

.input-shell input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--shop-ink);
    font-size: .92rem;
}

.input-shell input::placeholder {
    color: #929daf;
}

.password-toggle {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #687b99;
    cursor: pointer;
}

.password-toggle:hover {
    background: #e9edfb;
    color: var(--shop-blue);
}

.password-toggle span {
    font-size: 20px;
}

.field-error {
    display: none;
    margin-top: 7px;
    color: var(--shop-danger);
    font-size: .76rem;
    font-weight: 600;
}

.form-field.is-invalid .input-shell {
    border-color: #db7188;
    background: #fff7f9;
}

.form-field.is-invalid > .field-error,
.field-error--visible {
    display: block;
}

.btn-primary {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid var(--shop-blue);
    border-radius: 11px;
    background: linear-gradient(135deg, var(--shop-blue), #4a55cd);
    color: #ffffff;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(45, 94, 190, .16);
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        filter .16s ease,
        opacity .16s ease;
}

.btn-primary:hover {
    border-color: var(--shop-blue);
    background: linear-gradient(135deg, var(--shop-blue), #4a55cd);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(45, 94, 190, .2);
    filter: brightness(1.06);
}

.btn-primary:active {
    filter: brightness(.97);
}

.btn-primary:disabled {
    cursor: wait;
    opacity: .68;
}

.btn-primary .material-icons-sharp {
    font-size: 19px;
}

.feedback {
    padding: 13px 15px;
    border: 1px solid #dce5f5;
    border-radius: 11px;
    background: #f5f7ff;
    color: var(--shop-text);
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.55;
    text-align: center;
}

.feedback--success {
    border-color: #c9e7df;
    background: #f0faf7;
    color: var(--shop-success);
}

.feedback--error {
    border-color: #f0ccd5;
    background: #fff5f7;
    color: var(--shop-danger);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: .82rem;
}

.auth-back-link .material-icons-sharp {
    font-size: 18px;
}

.status-card,
.password-note {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--shop-line);
    border-radius: 13px;
    background: var(--shop-surface);
}

.status-card > .material-icons-sharp,
.password-note > .material-icons-sharp {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #e9edff;
    color: var(--shop-blue);
    font-size: 22px;
}

.status-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--shop-ink);
    font-size: .9rem;
}

.status-card p,
.password-note p {
    margin: 0;
    color: var(--shop-text);
    font-size: .81rem;
    line-height: 1.62;
}

.status-card--success {
    border-color: #cfe6df;
    background: #f3faf8;
}

.status-card--success > .material-icons-sharp {
    background: #dff3ed;
    color: var(--shop-success);
}

.status-card--warning {
    border-color: #eadfbf;
    background: #fffbf0;
}

.status-card--warning > .material-icons-sharp {
    background: #f8edcf;
    color: #9a6b18;
}

.password-note {
    margin: -4px 0 0;
    padding: 14px;
}

.password-note > .material-icons-sharp {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 19px;
}

.auth-footer {
    margin-top: 44px;
    color: var(--shop-muted);
    font-size: .72rem;
    line-height: 1.5;
    text-align: center;
}

.index-placeholder {
    display: grid;
    min-height: 100dvh;
    padding: 24px;
    place-items: center;
    background: #eef3ff;
}

.index-placeholder__card {
    width: min(100%, 560px);
    padding: 42px;
    border: 1px solid var(--shop-line);
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
}

.index-placeholder__card img {
    width: 154px;
}

.index-placeholder__card > span {
    display: block;
    margin: 12px 0 28px;
    color: var(--shop-blue);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.index-placeholder__card h1 {
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.index-placeholder__card p {
    margin: 0 0 26px;
    color: var(--shop-text);
}

.error-page {
    min-height: 100dvh;
    background: #eef3ff;
}

.error-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(22px, 5vw, 62px);
    place-items: center;
    background:
        radial-gradient(circle at 10% 12%, rgba(32, 94, 212, .12), transparent 25rem),
        radial-gradient(circle at 90% 88%, rgba(101, 83, 207, .13), transparent 25rem),
        #eef3ff;
}

.error-shell__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.error-shell__glow--one {
    top: -190px;
    right: -130px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(75, 86, 207, .12);
}

.error-shell__glow--two {
    bottom: -230px;
    left: -180px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(32, 94, 212, .1);
}

.error-card {
    width: min(100%, 720px);
    padding: clamp(28px, 6vw, 58px);
    border: 1px solid var(--shop-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    text-align: center;
}

.error-card__brand {
    margin: 0 auto clamp(32px, 6vw, 54px);
}

.error-visual {
    position: relative;
    display: grid;
    width: min(100%, 390px);
    min-height: 150px;
    margin: 0 auto 26px;
    place-items: center;
}

.error-visual__code {
    color: #edf1ff;
    font-size: clamp(7rem, 22vw, 11rem);
    font-weight: 800;
    line-height: .8;
    letter-spacing: -.09em;
    user-select: none;
}

.error-visual__icon {
    position: absolute;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 1px solid #d8e1f7;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7f9ff, #e8eeff);
    color: var(--shop-blue);
    font-size: 31px;
}

.error-content h1 {
    margin: 0 0 14px;
    color: var(--shop-ink);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.error-content > p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--shop-text);
    font-size: .92rem;
    line-height: 1.75;
}

.error-actions {
    display: flex;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid var(--shop-line);
    border-radius: 11px;
    background: #ffffff;
    color: var(--shop-ink);
    font-size: .9rem;
    font-weight: 800;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.btn-secondary:hover {
    border-color: #c9d5ec;
    background: var(--shop-surface);
    color: var(--shop-blue);
}

.error-footer {
    margin-top: 42px;
}

@media (max-width: 899.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: auto;
    }

    .auth-showcase__content {
        min-height: auto;
        padding: 28px clamp(22px, 6vw, 48px);
    }

    .auth-showcase__content > .brand,
    .auth-showcase__features {
        display: none;
    }

    .auth-showcase__message {
        margin: 0;
        padding: 12px 0;
    }

    .auth-showcase h1 {
        max-width: 650px;
        margin-bottom: 12px;
        font-size: clamp(1.55rem, 5vw, 2.2rem);
    }

    .auth-showcase__message > p {
        max-width: 700px;
        font-size: .88rem;
        line-height: 1.6;
    }

    .auth-panel {
        min-height: 0;
        padding: 40px clamp(22px, 7vw, 60px);
        place-items: start center;
    }

    .auth-mobile-brand {
        display: block;
        margin-bottom: 38px;
    }
}

@media (max-width: 479.98px) {
    .auth-showcase__message > p {
        display: none;
    }

    .auth-panel {
        padding-block: 32px;
    }

    .auth-mobile-brand {
        margin-bottom: 32px;
    }

    .brand img {
        width: 130px;
    }

    .brand span {
        padding-left: 10px;
        font-size: .65rem;
    }

    .auth-header {
        margin-bottom: 26px;
    }

    .input-shell {
        height: 52px;
    }

    .status-card,
    .password-note {
        padding: 15px;
    }

    .index-placeholder__card {
        padding: 30px 22px;
    }

    .error-card {
        padding-inline: 20px;
        border-radius: 16px;
    }

    .error-visual {
        min-height: 112px;
    }

    .error-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .error-actions > a {
        width: 100%;
    }
}
