:root {
    --orange: #ff6b00; --orange-hover: #f25f00; --ink: #1d232b; --muted: #5b6573;
    --line: #e3e6eb; --field: #f6f7f9; --panel: #ffffff; --peach: #fff1e6;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    font-family: "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
    color: var(--ink); background: var(--panel);
}
.page { display: grid; grid-template-rows: 64px 1fr; min-height: 100vh; }
header { display: flex; align-items: center; padding: 0 32px; border-bottom: 1px solid var(--line); }
header img { height: 36px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 0; }

/* --- левая половина: о системе */
.promo {
    position: relative; overflow: hidden; padding: 48px 48px 40px;
    background: linear-gradient(135deg, #fff4ea 0%, #ffe9d8 55%, #fff4ea 100%);
}
.promo::before, .promo::after {
    content: ""; position: absolute; border-radius: 50%; background: #ffdcc2; opacity: .55;
}
.promo::before { width: 520px; height: 520px; left: -240px; bottom: -260px; }
.promo::after { width: 300px; height: 300px; left: -120px; bottom: 120px; opacity: .35; }
.promo > * { position: relative; z-index: 1; }
.badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px;
    border-radius: 999px; background: #ffe2cc; color: #d85600; font-weight: 600; font-size: 14px;
}
.promo h1 { margin: 28px 0 10px; font-size: clamp(28px, 3.5vw, 50px); line-height: 1.08;
            letter-spacing: -1.5px; font-weight: 800; }
.promo .lead { font-size: 20px; color: var(--muted); margin: 0 0 36px; }
.mock { position: relative; height: 380px; max-width: 620px; }
.card {
    position: absolute; background: #fff; border-radius: 14px;
    box-shadow: 0 12px 30px rgba(170, 90, 30, .12); padding: 16px 18px;
}
.card h4 { margin: 0 0 12px; font-size: 14px; display: flex; justify-content: space-between; }
.card h4 span { font-weight: 400; font-size: 11px; color: var(--muted); border: 1px solid var(--line);
                border-radius: 6px; padding: 2px 8px; }
.kpis { left: 55px; top: 0; width: 540px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid #eef0f3; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.kpi b { display: block; color: var(--ink); font-size: 18px; margin: 4px 0; }
.kpi i { color: #16a34a; font-style: normal; font-size: 12px; }
.chart { left: 0; top: 140px; width: 370px; height: 200px; }
.reports { left: 318px; top: 175px; width: 300px; }
.reports .row { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 7px 0;
                border-top: 1px solid #f0f1f3; }
.reports .row i { width: 20px; height: 20px; border-radius: 6px; display: inline-block; }

/* --- правая половина: форма */
.login { display: flex; flex-direction: column; justify-content: center; align-items: center;
         padding: 40px 24px; position: relative; }
form { width: 100%; max-width: 384px; }
form h2 { margin: 0; text-align: center; font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
form .sub { text-align: center; color: var(--muted); margin: 10px 0 36px; font-size: 16px; }
label.cap { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 8px; }
.field { position: relative; }
.field svg.icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a93a0; }
.field input {
    width: 100%; height: 48px; padding: 0 44px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--field); font: inherit; font-size: 15px; color: var(--ink); outline: none;
}
.field input:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px #ffe2cc; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0;
       background: none; padding: 6px; cursor: pointer; color: #6b7480; }
.line { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; font-size: 14px; }
.line label { display: flex; align-items: center; gap: 10px; color: #4b5563; cursor: pointer; }
.line input { width: 18px; height: 18px; accent-color: var(--orange); }
.line a { color: var(--orange); font-weight: 600; text-decoration: none; cursor: pointer; }
button.go {
    width: 100%; height: 50px; border: 0; border-radius: 8px; background: var(--orange); color: #fff;
    font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 107, 0, .25);
}
button.go:hover { background: var(--orange-hover); }
button.go:disabled { opacity: .7; cursor: default; }
.msg { min-height: 20px; margin-top: 14px; text-align: center; font-size: 14px; }
.msg.error { color: #d92d20; }
.msg.info { color: var(--muted); }
.help { text-align: center; color: var(--muted); margin-top: 18px; font-size: 14px; }
footer { position: absolute; bottom: 20px; left: 48px; right: 48px; padding-top: 18px;
         border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 960px) {
    .split { grid-template-columns: 1fr; }
    .promo { display: none; }
    header { padding: 0 16px; }
}

/* --- второй шаг: код из Telegram */
.hidden { display: none !important; }
.code-input { text-align: center; letter-spacing: 8px; font-size: 24px; font-weight: 700; padding: 0 12px !important; }
.code-input.recovery { letter-spacing: 2px; font-size: 18px; }
.step-note { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.timer { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 0; min-height: 20px; }
.timer.over { color: #d92d20; }
.links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; }
.links button { border: 0; background: none; padding: 0; font: inherit; color: var(--orange);
                font-weight: 600; cursor: pointer; }
.links button:disabled { color: var(--muted); cursor: default; font-weight: 400; }
.links button:focus-visible, .eye:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.card h4 span.all-link { border: 0; color: #ff6b00; }
.reports .row i.sw1 { background: #ffd8b8; }
.reports .row i.sw2 { background: #c9f0d6; }
.reports .row i.sw3 { background: #e5d8ff; }
.reports .row i.sw4 { background: #d3e6ff; }
button.go.go-code { margin-top: 22px; }
