/* Вход в кабинет «Мой чек» — та же редакционная система, что на лендинге.
   Свои стили, системные шрифты, без внешних CDN. */

:root {
    --ink: #111111;
    --muted: #57574F;
    --paper: #FBFBF9;
    --line: #E2E1DA;
    --line-strong: #C9C8BF;
    --red: #D7263D;
    --serif: Georgia, 'Times New Roman', 'PT Serif', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16.5px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 0;
}

/* ---------- левая часть: смысл и контекст ---------- */

.side {
    padding: 44px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
    background: var(--paper);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font: 700 19px/1 var(--serif);
    text-decoration: none;
}

.brand i {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    font: 700 13px/1 var(--sans);
    font-style: normal;
}

.side-mid { max-width: 30em; }

.eyebrow {
    display: inline-block;
    font: 700 11px/1 var(--sans);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    border-bottom: 2px solid var(--red);
    padding-bottom: 7px;
}

.side-quote {
    font: 400 30px/1.28 var(--serif);
    letter-spacing: -.02em;
    margin: 20px 0 14px;
    text-wrap: balance;
}

.side-quote em { font-style: italic; }

.side-sub { margin: 0; color: var(--muted); font-size: 15.5px; }

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid var(--line-strong);
    padding-top: 16px;
    margin-top: 34px;
}

.fact b { display: block; font: 400 24px/1 var(--serif); letter-spacing: -.02em; }
.fact span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; }

.side-foot { font-size: 13px; color: var(--muted); }

.side-foot a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.side-foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- правая часть: форма ---------- */

.pane {
    background: #F3F2EC;
    border-left: 3px solid var(--ink);
    padding: 44px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 32px 30px 28px;
    box-shadow: 0 22px 50px -34px rgba(17, 17, 17, .45);
}

.card h1 {
    font: 400 27px/1.2 var(--serif);
    letter-spacing: -.02em;
    margin: 0 0 6px;
}

.card .sub {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--muted);
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font: 600 12px/1 var(--sans);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.field input {
    width: 100%;
    padding: 13px 14px;
    font: 400 16px/1.2 var(--sans);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    transition: border-color .15s, background .15s;
}

.field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    font: 600 15.5px/1 var(--sans);
    text-decoration: none;
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.btn:hover { background: #B91D32; border-color: #B91D32; }
.btn:focus-visible { outline: 3px solid rgba(215, 38, 61, .45); outline-offset: 2px; }

.alert {
    border: 1px solid #F0C9CE;
    border-left: 3px solid var(--red);
    background: #FDF3F4;
    color: #8E1424;
    padding: 11px 13px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-info {
    border-color: #D9E3F0;
    border-left-color: #2B5FA8;
    background: #F4F8FD;
    color: #1D4A85;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}

.hint {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

.hint b { color: var(--ink); font-weight: 600; }

.hint a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--red);
}

.hint a:hover { color: var(--red); }

.card-foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- мелкие экраны ---------- */

@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; min-height: auto; }

    /* На телефоне форма идёт первой: человек пришёл вводить пароль. */
    .pane { order: 1; padding: 26px 18px 30px; border-left: 0; border-top: 3px solid var(--ink); }
    .side { order: 2; padding: 26px 18px 34px; border-right: 0; border-top: 1px solid var(--line); }
    .side-quote { font-size: 23px; }
    .side-foot { margin-top: 24px; }
    .facts { margin-top: 22px; }
}
