:root {
    --shop-navy: #122740;
    --shop-navy-deep: #0b1929;
    --shop-ink: #14233a;
    --shop-muted: #66758b;
    --shop-line: #d5deea;
    --shop-focus: #315d91;
}

body.shop-login-page {
    min-height: 100vh;
    background: #fff;
    color: var(--shop-ink);
    overflow-x: hidden;
}

.shop-login-page > header { display: none; }
.shop-login-page > main { margin: 0; padding: 0; min-height: 100vh; }

.shop-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 57%) minmax(440px, 43%);
    background: #fff;
}

.shop-login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: var(--shop-navy-deep) url('/static/shop-login-showroom.png') center 58% / cover no-repeat;
}

.shop-login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 20, 34, .16), transparent 58%, rgba(8, 17, 28, .35));
    pointer-events: none;
}

.shop-login-visual-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(38px, 5vw, 76px) clamp(42px, 6vw, 92px) clamp(34px, 4vw, 62px);
}

.shop-login-logo {
    width: clamp(220px, 24vw, 330px);
    height: auto;
}

.shop-login-story { margin-top: clamp(42px, 6vh, 78px); max-width: 650px; }
.shop-login-story h1 { margin: 0 0 14px; color: #fff; font-size: clamp(40px, 4.3vw, 66px); line-height: 1.06; letter-spacing: -.035em; }
.shop-login-story p { margin: 0; max-width: 610px; color: #c8d0db; font-size: clamp(20px, 2vw, 29px); line-height: 1.45; }
.shop-login-factories { margin: auto 0 0; color: #e6e9ed; font-size: 15px; letter-spacing: .18em; }

.shop-login-access {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 116px clamp(42px, 5vw, 82px) 100px;
    background: #fff;
}

.shop-login-languages {
    position: absolute;
    top: clamp(34px, 5vh, 58px);
    right: clamp(34px, 4vw, 62px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-login-languages a {
    padding: 11px 16px;
    border-radius: 13px;
    color: #68758a;
    font-size: 17px;
    transition: background .18s ease, color .18s ease;
}
.shop-login-languages a:hover { color: var(--shop-navy); background: #f1f5f9; }
.shop-login-languages a.active { color: #fff; background: var(--shop-navy); }
.shop-login-languages a:focus-visible,
.shop-password-toggle:focus-visible,
.shop-login-submit:focus-visible { outline: 3px solid rgba(49, 93, 145, .32); outline-offset: 3px; }

.shop-login-form-wrap { width: min(100%, 470px); transform: translateY(-2vh); }
.shop-login-form-wrap h2 { margin: 0 0 12px; color: var(--shop-ink); font-size: clamp(38px, 3vw, 47px); line-height: 1.08; letter-spacing: -.035em; white-space: nowrap; }
.shop-login-intro { margin: 0 0 54px; color: var(--shop-muted); font-size: 19px; line-height: 1.5; }
.shop-login-form-wrap form { display: grid; gap: 26px; }
.shop-login-field { display: grid; gap: 9px; color: var(--shop-ink); font-size: 17px; font-weight: 600; }
.shop-login-field input {
    min-width: 0;
    width: 100%;
    height: 58px;
    padding: 0 16px;
    border: 1px solid var(--shop-line);
    border-radius: 10px;
    background: #fff;
    color: var(--shop-ink);
    font-size: 18px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.shop-login-field input:focus { outline: 0; border-color: var(--shop-focus); box-shadow: 0 0 0 4px rgba(49, 93, 145, .12); }
.shop-password-control { position: relative; display: block; }
.shop-password-control input { padding-right: 58px; }
.shop-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--shop-navy);
    background: transparent;
    border: 0;
    border-radius: 9px;
}
.shop-password-toggle:hover { background: #f2f5f8; }
.shop-password-toggle svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.shop-login-submit {
    width: 100%;
    height: 58px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    border-radius: 10px;
    background: var(--shop-navy);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(18, 39, 64, .15);
    transition: background .18s ease, transform .18s ease;
}
.shop-login-submit:hover { background: #193857; transform: translateY(-1px); }
.shop-login-submit svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-login-form-wrap .catalogue-error { margin: -32px 0 28px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #b42318; line-height: 1.45; }

.shop-login-domain {
    position: absolute;
    bottom: clamp(32px, 5vh, 58px);
    left: 50%;
    width: min(330px, calc(100% - 80px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    color: #738097;
    font-size: 15px;
}
.shop-login-domain::before, .shop-login-domain::after { content: ""; height: 1px; flex: 1; background: #d7dee8; }

@media (max-width: 1000px) {
    .shop-login { grid-template-columns: minmax(0, 48%) minmax(430px, 52%); }
    .shop-login-visual-content { padding-inline: 42px; }
    .shop-login-story h1 { font-size: 42px; }
    .shop-login-story p { font-size: 21px; }
}

@media (max-width: 760px) {
    .shop-login { display: block; min-height: 100vh; }
    .shop-login-visual { min-height: 285px; background-position: center 55%; }
    .shop-login-visual::after { background: linear-gradient(180deg, rgba(8, 20, 34, .14), rgba(8, 17, 28, .68)); }
    .shop-login-visual-content { min-height: 285px; padding: 28px 24px 24px; }
    .shop-login-logo { width: 190px; }
    .shop-login-story { margin-top: auto; }
    .shop-login-story h1 { margin-bottom: 7px; font-size: 31px; }
    .shop-login-story p { max-width: 520px; font-size: 16px; line-height: 1.4; }
    .shop-login-factories { display: none; }
    .shop-login-access { min-height: calc(100vh - 285px); align-items: flex-start; padding: 98px 24px 82px; }
    .shop-login-languages { top: 24px; right: 24px; }
    .shop-login-languages a { padding: 9px 12px; font-size: 15px; }
    .shop-login-form-wrap { width: min(100%, 520px); transform: none; }
    .shop-login-form-wrap h2 { font-size: 34px; white-space: normal; }
    .shop-login-intro { margin-bottom: 36px; font-size: 17px; }
    .shop-login-domain { bottom: 26px; }
}

@media (max-width: 420px) {
    .shop-login-visual { min-height: 245px; }
    .shop-login-visual-content { min-height: 245px; padding: 22px 18px 18px; }
    .shop-login-logo { width: 155px; }
    .shop-login-story h1 { font-size: 27px; }
    .shop-login-story p { font-size: 14px; }
    .shop-login-access { min-height: calc(100vh - 245px); padding: 88px 18px 78px; }
    .shop-login-languages { top: 20px; right: 18px; }
    .shop-login-form-wrap h2 { font-size: 31px; }
    .shop-login-field input, .shop-login-submit { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    .shop-login-languages a, .shop-login-field input, .shop-login-submit { transition: none; }
}
