:root {
    --bg: #07090f;
    --surface: #11151d;
    --border-color: #273142;
    --text-color: #eef1f6;
    --text-muted: #93a0b5;
    --blue: #2f5bff;
    --blue-2: #3d70ff;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    color: var(--text-color);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Arial, sans-serif;
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(47, 91, 255, 0.18), transparent 55%),
        radial-gradient(700px 380px at 100% 0%, rgba(34, 197, 94, 0.08), transparent 48%),
        var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }

.page {
    position: relative;
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px 48px;
    overflow-x: hidden;
}

.page::before,
.page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page::before {
    background: var(--reg-bg) center / cover no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 34%, 50% 52%, 0 34%);
    filter: saturate(1.05);
}

.page::after {
    background: linear-gradient(180deg, rgba(7, 9, 15, 0.28) 0%, rgba(7, 9, 15, 0.62) 42%, rgba(7, 9, 15, 0.96) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 34%, 50% 52%, 0 34%);
}

.auth-block {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: clamp(56px, 8vh, 110px);
}

.site-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.site-logo img {
    max-height: 48px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.logo-text {
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 24px;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.card {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 70px), #11151d;
    border: 1px solid #273142;
    border-radius: 22px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
    padding: 26px 24px 22px;
}

.reg-head { margin-bottom: 18px; }

.title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
}

.title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    border-radius: 99px;
    background: linear-gradient(90deg, #2f5bff, #22c55e);
}

.reg-lead {
    margin: 10px 0 0;
    color: #93a0b5;
    font-size: 13px;
    line-height: 1.5;
}

.htr-login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid #2d3748;
    background: #0c1017;
    color: #eef1f6;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.htr-login-google:hover {
    background: #121826;
    border-color: #3b4558;
}

.reg-or {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 12px 0;
    color: #8b93a3;
    font-size: 12px;
    font-weight: 600;
}

.reg-or::before,
.reg-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #2d3748;
}

.register-form {
    display: grid;
    gap: 12px;
    width: 100%;
}

.form-grid,
.form-grid.single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.form-field { min-width: 0; }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    height: 54px;
    padding: 0 14px;
    border: 1px solid #2d3748;
    border-radius: 14px;
    background: #0c1017;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.input-wrap:focus-within {
    border-color: #2f5bff;
    box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.16);
    background: #0e1320;
}

.input-wrap i {
    color: #6d7b91;
    width: 16px;
    text-align: center;
}

.input-wrap input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.input-wrap input::placeholder { color: #7d89a0; }

.input-wrap.with-action { padding-right: 48px; }

.icon-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #2d3748;
    background: #161c28;
    color: #c5cad3;
    border-radius: 10px;
    cursor: pointer;
}

.icon-action:hover {
    border-color: #3b4a63;
    color: #fff;
}

.agreements {
    display: grid;
    gap: 10px;
    margin: 4px 0 2px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #2a3342;
    border-radius: 12px;
    background: #0f141d;
    color: #d5dae3;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: 0 0 18px;
    accent-color: #2f5bff;
}

.check span { flex: 1; }

.agree-link {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
}

.agree-link:hover { color: #bfdbfe; text-decoration: underline; }

.has-error .input-wrap {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.agreements.has-error .check {
    border-color: rgba(239, 68, 68, 0.45);
}

.btn,
button.btn {
    width: 100%;
    min-height: 52px;
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--blue-2), var(--blue));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(47, 91, 255, 0.3);
    transition: transform .16s ease, filter .16s ease;
}

.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.cta {
    width: 100%;
    min-height: 48px;
    height: 48px;
    margin-top: 2px;
    border: 1px solid #2d3748;
    border-radius: 14px;
    background: #121722;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.cta:hover {
    border-color: #3b4a63;
    background: #161d2a;
}

.g-recaptcha {
    margin: 4px 0;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
}

.recaptcha-spacer { height: 2px; }

.steps-wrap {
    width: min(1100px, 100%);
    position: relative;
    z-index: 1;
    margin: 28px auto 0;
    padding: 0 4px;
}

.steps-header { text-align: center; margin-bottom: 16px; }

.steps-subtitle {
    margin: 0;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.steps-title {
    margin: 8px 0 0;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.step {
    min-height: 168px;
    padding: 18px 14px;
    background: #11151d;
    border: 1px solid #273142;
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.step:hover {
    transform: translateY(-3px);
    border-color: #3b4a63;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i { font-size: 20px; }

.step-title-top { color: #fff; font-weight: 800; font-size: 15px; }
.step-title-sub { color: #93a0b5; font-size: 12px; }
.step-divider {
    width: 28px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: linear-gradient(90deg, #2f5bff, #22c55e);
}
.step-desc { color: #8b93a3; font-size: 12px; line-height: 1.4; }

@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; }
    .auth-block { margin-top: 36px; }
}

@media (max-width: 600px) {
    .page { padding: 16px 12px 36px; }
    .page::before,
    .page::after { clip-path: polygon(0 0, 100% 0, 100% 28%, 50% 42%, 0 28%); background-attachment: scroll; }
    .card { padding: 18px 14px 16px; border-radius: 18px; }
    .title { font-size: 24px; }
    .input-wrap,
    .btn,
    .cta { width: 100%; }
    .steps-title { font-size: 18px; }
    .g-recaptcha { transform: scale(0.92); transform-origin: left top; }
}
