/* PolyTOE — лендинг и auth-панель (hero + вход/регистрация). Перенос из прототипа. */
.registration-shell {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 28px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 12px 0;
    display: grid;
    align-items: center;
}

.registration-page {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.48fr);
    gap: 14px;
    align-items: stretch;
}

.registration-hero {
    position: relative;
    overflow: hidden;
    padding: 22px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 14px;
    background:
        radial-gradient(circle at top left, rgba(85, 200, 255, 0.22), transparent 36%),
        radial-gradient(circle at bottom right, rgba(131, 239, 187, 0.12), transparent 30%),
        linear-gradient(160deg, rgba(10, 30, 38, 0.94), rgba(9, 19, 24, 0.98));
}

.registration-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.hero-copy {
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    margin: 0;
    font-family: Bahnschrift, "Segoe UI Variable", "Segoe UI", sans-serif;
    font-size: clamp(2.3rem, 4.4vw, 4.4rem);
    line-height: 0.94;
    max-width: none;
}

.hero-copy h1 span {
    white-space: nowrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    border: 1px solid rgba(177, 223, 241, 0.12);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
    line-height: 1.25;
}

.hero-stat span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.hero-visual {
    position: relative;
    width: 100%;
    margin: 0;
    min-height: 180px;
    max-height: 220px;
    border: 1px solid rgba(177, 223, 241, 0.12);
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3, 11, 14, 0.12), rgba(3, 11, 14, 0.78)),
        rgba(8, 18, 23, 0.76);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.88;
    filter: saturate(1.06) contrast(1.06);
}

.registration-panel.registration-main {
    padding: 18px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.auth-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 980px) {
    .registration-page {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .registration-shell {
        width: min(100% - 16px, 1240px);
        padding-top: 14px;
        padding-bottom: 18px;
    }

    .registration-panel.registration-main,
    .registration-hero {
        padding: 16px;
    }

    .auth-form,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .registration-field.full {
        grid-column: auto;
    }

    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .registration-actions .primary {
        min-width: 0;
        width: 100%;
    }
}
