@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F;
}

:root {
    --ink: #151516;
    --muted: #53646a;
    --muted-2: #7a898e;
    --line: #d7e2e5;
    --paper: #f4f7f8;
    --cyan: #00bfe3;
    --cyan-deep: #007a92;
    --danger: #d92d20;
    --font: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
    background: #fff;
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.login-story {
    position: relative;
    min-height: 100vh;
    padding: 34px 42px 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
    border-right: 1px solid var(--line);
}

.login-story-mark {
    position: absolute;
    right: -55%;
    bottom: -35%;
    width: 145%;
    max-width: none;
    opacity: .035;
    pointer-events: none;
    user-select: none;
}

.login-brand,
.login-story-copy,
.login-story-foot {
    position: relative;
    z-index: 1;
}

.login-brand img {
    display: block;
    width: auto;
    height: 72px;
}

.login-story-copy {
    margin: auto 0;
    max-width: 615px;
    padding: 64px 0;
}

.login-eyebrow {
    margin: 0 0 24px;
    color: var(--cyan-deep);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.login-story-copy h1 {
    margin: 0;
    font-size: clamp(42px, 4.2vw, 64px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.login-lead {
    max-width: 520px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.login-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.login-stats strong {
    display: block;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.login-stats span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.login-story-foot {
    margin: 0;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 550;
}

.login-panel {
    min-height: 100vh;
    padding: 32px 48px 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.login-mobile-brand { display: none; }

.login-form-wrap {
    width: 100%;
    max-width: 430px;
    margin: auto;
    padding: 48px 0;
}

.login-form-wrap h2 {
    margin: 0;
    font-size: clamp(34px, 3vw, 43px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.login-subtitle {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 13px 15px;
    border: 1px solid #f3c4c0;
    border-radius: 12px;
    background: #fff6f5;
    color: #a62217;
    font-size: 13px;
    line-height: 1.5;
}

.login-error svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-form {
    margin-top: 32px;
}

.login-field {
    display: block;
    margin-bottom: 20px;
}

.login-field > span:first-child {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
}

.login-field input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: 500 15px/1.2 var(--font);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.login-field input::placeholder { color: #9aa8ac; }

.login-field input:focus {
    border-color: var(--cyan-deep);
    box-shadow: 0 0 0 3px rgba(0, 191, 227, .15);
}

.login-password {
    position: relative;
    display: block;
}

.login-password input { padding-right: 52px; }

.login-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    border-radius: 0 10px 10px 0;
}

.login-eye:hover { color: var(--ink); }

.login-eye:focus-visible {
    outline: 2px solid var(--cyan-deep);
    outline-offset: -3px;
}

.login-eye svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-eye .eye-hide { display: none; }
.login-eye.is-visible .eye-show { display: none; }
.login-eye.is-visible .eye-hide { display: block; }

.login-submit {
    width: 100%;
    height: 54px;
    margin-top: 8px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font: 700 15px/1 var(--font);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.login-submit:hover { background: #2b2b2d; }
.login-submit:active { transform: translateY(1px); }
.login-submit:focus-visible {
    outline: 2px solid var(--cyan-deep);
    outline-offset: 3px;
}

.login-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 26px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.login-note svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.login-panel-bottom {
    margin-top: 22px;
    text-align: right;
}

.login-credit {
    margin: 0 0 4px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.45;
}

.login-panel-foot {
    margin: 0;
    color: #9aa8ac;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-story { display: none; }
    .login-panel {
        min-height: 100vh;
        padding: 26px 24px 22px;
    }
    .login-panel-bottom { text-align: center; }
    .login-mobile-brand { display: block; }
    .login-mobile-brand img { display: block; width: auto; height: 64px; }
    .login-form-wrap {
        max-width: 470px;
        padding: 44px 0;
    }
}

@media (max-width: 480px) {
    .login-credit { font-size: 10.5px; }
    .login-panel { padding: 22px 18px 18px; }
    .login-mobile-brand img { height: 64px; }
    .login-form-wrap { padding: 36px 0; }
    .login-form-wrap h2 { font-size: 34px; }
}
