:root {
    --ink: #142033;
    --muted: #667085;
    --line: #e6edf2;
    --field: #f4f7fb;
    --teal: #12856d;
    --teal-dark: #0e6e5a;
    --panel: #0f7a68;
    --page: #f3faf7;
    --card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    color: var(--ink);
    background: var(--page);
    font: 15px/1.5 Inter, "Segoe UI", sans-serif;
}
a { color: var(--teal); text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2 { letter-spacing: -0.03em; }

.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,.16);
    display: grid;
    place-items: center;
    flex: none;
}
.brand-mark svg { display: block; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .04em; }
.brand-sub { display: block; font-size: 12px; font-weight: 500; opacity: .8; margin-top: 1px; }

.login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}
.login-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 36px 56px 32px;
    background:
        radial-gradient(520px 280px at 80% 110%, rgba(255,255,255,.16), transparent 60%),
        linear-gradient(165deg, #0c6b5c 0%, #12856d 48%, #0e7c78 100%);
    display: flex;
    flex-direction: column;
}
.login-panel h1 {
    margin: 54px 0 14px;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
    max-width: 520px;
}
.login-panel .lead {
    margin: 0 0 28px;
    max-width: 440px;
    font-size: 16px;
    color: rgba(255,255,255,.88);
}
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.feature-list i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    flex: none;
}
.scene {
    margin-top: auto;
    height: 250px;
    position: relative;
    z-index: 1;
}
.scene svg { width: min(420px, 100%); height: 250px; display: block; margin-left: 20px; }

.login-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    background:
        radial-gradient(180px 180px at 92% 8%, rgba(18,133,109,.08), transparent 70%),
        radial-gradient(220px 220px at 8% 92%, rgba(18,133,109,.07), transparent 70%),
        #f7fbfa;
}
.login-card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16, 40, 34, .08);
    padding: 34px 32px 26px;
}
.login-card h2 { margin: 0 0 8px; font-size: 30px; font-weight: 800; }
.hint { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input-wrap { position: relative; }
.input-wrap svg.lead-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
}
.field input, .field textarea {
    width: 100%;
    border: 1px solid #e4ebf2;
    background: var(--field);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    color: var(--ink);
}
.field input { height: 48px; }
.input-wrap input { padding-left: 40px; }
.field input:focus, .field textarea:focus { border-color: #9ed3c4; box-shadow: 0 0 0 3px rgba(18,133,109,.12); background: #fff; }
.eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    width: 34px;
    height: 34px;
}

.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 16px; }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.btn:hover { background: var(--teal-dark); }
.btn-solid, .btn-line { width: auto; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-line { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-line:hover { background: #f3faf7; }

.login-links { margin-top: 14px; display: grid; gap: 12px; font-size: 14px; text-align: center; }
.login-links .split { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); }
.quiet, .quiet a { color: #98a2b3; font-size: 13px; }
.err { background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }

.top {
    height: 74px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
}
.top .brand { color: var(--ink); }
.top .brand-mark { background: var(--teal); }
.top .brand-sub { color: var(--muted); opacity: 1; }
.top-in, .page { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.top-in { display: flex; align-items: center; gap: 22px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: #3f4c59; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.top-actions { display: flex; gap: 8px; }

.page { padding: 28px 0 64px; position: relative; }
.page h1 { margin: 0 0 6px; font-size: 40px; font-weight: 800; }
.page .sub { margin: 0 0 18px; color: var(--muted); }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .78fr); gap: 18px; align-items: start; }
.reg-card {
    background: #fff;
    border: 1px solid #e7eef3;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(16, 40, 34, .04);
    padding: 22px 22px 18px;
}
.why {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 22px;
    color: #fff;
    padding: 28px 24px 200px;
    background:
        radial-gradient(280px 180px at 80% 88%, rgba(255,255,255,.18), transparent 60%),
        linear-gradient(180deg, #14967d 0%, #0c6d5e 100%);
}
.why h2 { margin: 0 0 18px; font-size: 28px; line-height: 1.2; font-weight: 800; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.why li { display: flex; gap: 12px; align-items: flex-start; }
.why li i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    display: grid;
    place-items: center;
    flex: none;
}
.why .tooth { position: absolute; left: 24px; right: 24px; bottom: 0; height: 180px; pointer-events: none; }
.why .tooth svg { width: 100%; height: 180px; }

.steps {
    --progress: 0%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 4px 0 22px;
    padding-top: 2px;
}
.steps::before, .steps::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 99px;
}
.steps::before { background: #e6eeea; }
.steps::after { right: auto; width: var(--progress); background: var(--teal); max-width: 76%; }
.step { text-align: center; font-size: 13px; color: #98a2b3; position: relative; z-index: 1; }
.step b {
    width: 30px;
    height: 30px;
    margin: 0 auto 6px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef2f4;
    color: #98a2b3;
    font-size: 13px;
}
.step.on b, .step.done b { background: var(--teal); color: #fff; }
.step.on { color: var(--teal); font-weight: 700; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.span-2 { grid-column: 1 / -1; }
.step-actions { display: flex; gap: 10px; margin-top: 8px; }
.step-actions .btn { width: auto; min-width: 160px; padding: 0 18px; }
.step-actions .btn.grow { flex: 1; }
.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ghost:hover { background: #f7fbfa; }

.plans { display: flex; gap: 10px; }
.plans label { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; }
.plans input { accent-color: var(--teal); margin-right: 6px; }
.ok-box { background: #ecfdf3; color: #166534; border-radius: 12px; padding: 14px; }
.doc { max-width: 720px; }
.doc h1 { font-size: 36px; }
.doc p { color: #3e4a57; }

@media (max-width: 980px) {
    .login-screen, .reg-grid, .cols { grid-template-columns: 1fr; }
    .login-panel { padding: 24px 20px 10px; }
    .login-panel h1, .page h1 { font-size: 32px; }
    .scene, .why .tooth, .nav { display: none; }
    .why { min-height: 0; }
    .span-2 { grid-column: auto; }
    .steps { gap: 4px; }
}
