/* Фоновая секция для страницы регистрации */
.registration-main {
    background-color: transparent;
    background-image: none;
    
    padding: clamp(18px, 3vh, 34px) 0 clamp(24px, 4vh, 44px);
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.registration-main::before,
.registration-main::after {
    content: none;
}

/* Настройка контейнера, чтобы форма не прилипала к краям */
.registration-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.registration-page .page::before,
.registration-page .page::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.registration-page .page::before {
    inset: 0;
    opacity: 1;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8faff 42%, #eef3fb 100%);
}

.registration-page .page::after {
    top: -12vh;
    bottom: -12vh;
    left: -18vw;
    right: -18vw;
    opacity: 0.86;
    filter: blur(clamp(30px, 4vw, 58px));
    background:
        radial-gradient(ellipse 32% 24% at 11% 18%, rgba(250, 234, 184, 0.86), transparent 68%),
        radial-gradient(ellipse 30% 28% at 90% 30%, rgba(220, 185, 123, 0.74), transparent 70%),
        radial-gradient(ellipse 34% 30% at 12% 78%, rgba(172, 115, 67, 0.62), transparent 72%),
        radial-gradient(ellipse 32% 28% at 88% 84%, rgba(250, 234, 184, 0.72), transparent 72%),
        radial-gradient(ellipse 36% 32% at 28% 48%, rgba(44, 129, 246, 0.58), transparent 76%),
        radial-gradient(ellipse 36% 34% at 72% 58%, rgba(11, 62, 177, 0.46), transparent 76%),
        radial-gradient(ellipse 26% 52% at 50% 50%, rgba(255, 255, 255, 0.28), transparent 78%);
}

.registration-page .topbar,
.registration-page .registration-main,
.registration-page .site-footer {
    position: relative;
    z-index: 1;
}

/* Если вы хотите, чтобы форма выглядела еще эффектнее на этом фоне */
.form-card {
    /* Убеждаемся, что карточка имеет свои стили из style.css */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.registration-form-card {
    max-width: 420px;
    padding: clamp(24px, 3.2vh, 34px);
    border-radius: 20px;
}

.registration-form-card .form-header {
    margin-bottom: clamp(18px, 2.4vh, 24px);
}

.registration-form-card .brand-logo {
    margin-bottom: 10px;
}

.registration-form-card .top-accent {
    margin-bottom: 16px;
}

.registration-form-card h1 {
    font-size: clamp(1.32rem, 2.2vh, 1.55rem);
}

.registration-form-card .subtitle {
    font-size: clamp(0.78rem, 1.65vh, 0.9rem);
    line-height: 1.4;
}

.registration-form-card .input-group {
    margin-bottom: clamp(12px, 1.8vh, 16px);
}

.registration-form-card input[type="text"],
.registration-form-card input[type="email"],
.registration-form-card select {
    height: clamp(42px, 5.5vh, 48px);
}

.registration-form-card .consent-wrapper {
    margin-bottom: clamp(18px, 2.4vh, 24px);
}

.registration-form-card .btn-submit {
    height: clamp(46px, 5.8vh, 52px);
}





/* Центрирование хедера и логотипа */
.registration-topbar {
    padding: 40px 0 20px; /* Отступы сверху и снизу от логотипа */
    background: transparent; /* Оставляем фон прозрачным, так как основной фон задан для всей страницы */
}

.registration-topbar .container {
    display: flex;
    justify-content: center; /* Центрируем содержимое контейнера по горизонтали */
    align-items: center;
}

.registration-topbar .brand {
    margin: 0 auto; /* Дополнительная гарантия центрирования */
    display: block;
    width: clamp(220px, 28vh, 300px);
    height: auto;
}

/* Убираем возможные стандартные отступы у логотипа */
.registration-topbar .brand img {
    display: block;
    width: clamp(220px, 28vh, 300px);
    height: auto;
    max-width: 100%;
}

/* Корректируем отступ основной секции, чтобы форма не прилипала к логотипу */
.registration-main {
    padding-top: clamp(12px, 2.2vh, 24px);
}







.registration-topbar {
    background: transparent;
    animation: none;
    padding: clamp(12px, 2.2vh, 22px) 0 clamp(6px, 1.3vh, 12px);
    border-bottom: 0;
}

/* Убираем лишние отступы у main, чтобы блоки прилегали друг к другу бесшовно */
.registration-main {
    padding-top: clamp(12px, 2.2vh, 24px);
}

@media (min-aspect-ratio: 16 / 9) {
    .registration-page .page::after {
        left: -10vw;
        right: -10vw;
        opacity: 0.9;
    }
}

@media (max-aspect-ratio: 4 / 5) {
    .registration-page .page::after {
        left: -52vw;
        right: -52vw;
        opacity: 0.74;
    }
}

@media (max-width: 900px) {
    .registration-container {
        padding: 0 28px;
    }

    .registration-page .page::after {
        left: -46vw;
        right: -46vw;
        opacity: 0.7;
        filter: blur(46px);
    }
}

@media (max-width: 520px) {
    .registration-main {
        padding-top: 18px;
        padding-bottom: 32px;
    }

    .registration-container {
        padding: 0 20px;
    }

    .registration-form-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .registration-page .page::after {
        left: -86vw;
        right: -86vw;
        opacity: 0.6;
        filter: blur(48px);
    }
}

@media (max-height: 700px) and (orientation: landscape) {
    .registration-topbar {
        padding-top: 8px;
        padding-bottom: 4px;
    }

    .registration-topbar .brand,
    .registration-topbar .brand img {
        width: clamp(190px, 26vh, 240px);
    }

    .registration-main {
        padding-top: 8px;
        padding-bottom: 18px;
    }

    .registration-form-card {
        max-width: 400px;
        padding: 20px 24px;
    }

    .registration-form-card .form-header {
        margin-bottom: 14px;
    }

    .registration-form-card .top-accent {
        margin-bottom: 12px;
    }

    .registration-form-card .input-group {
        margin-bottom: 10px;
    }

    .registration-form-card .consent-wrapper {
        margin-bottom: 14px;
    }

    .registration-page .page::after {
        top: -34vh;
        bottom: -34vh;
        opacity: 0.66;
        filter: blur(42px);
    }
}
