/* ==================== БАЗОВЫЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #000000;
    color: #f5f5f7;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 1000;
}

.modal {
    background: #1c1c1e;
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== КНОПКА ЗАКРЫТИЯ ==================== */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #86868b;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

/* ==================== ЛЕВАЯ ПАНЕЛЬ С ИЛЛЮСТРАЦИЕЙ ==================== */
.left-panel {
    /* Было flex: 0.55; Ставим 1, чтобы занимала половину */
    flex: 1;

    background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #ec4899 100%);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.left-content {
    position: relative;
    z-index: 2;
}

.left-title {
    color: #2d1b4e;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* ==================== ИЛЛЮСТРАЦИЯ С КАРТОЧКАМИ ==================== */
.illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    min-height: 280px;
}

/* ==================== СЛАЙДШОУ НОВОЕ ==================== */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item.active {
    opacity: 1;
    z-index: 10;
}

.slide-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: white;
    text-align: center;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    animation: overlayFadeIn 0.8s ease-in-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

.slide-overlay h2 {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: 2px;
    color: white;
}

.slide-overlay p {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.95;
    color: white;
    margin: 0;
}

.cards-stack {
    position: relative;
    width: 300px;
    height: 280px;
}

.card {
    position: absolute;
    width: 170px;
    height: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card-1 {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    top: 20px;
    left: -10px;
    transform: rotate(-15deg);
    z-index: 1;
}

.card-2 {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    top: 25px;
    left: 40px;
    transform: rotate(-5deg);
    z-index: 2;
}

.card-3 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    top: 30px;
    left: 90px;
    transform: rotate(5deg);
    z-index: 3;
}

.card-4 {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    top: 35px;
    left: 140px;
    transform: rotate(15deg);
    z-index: 4;
}

/* Наушники */
.headphones {
    position: absolute;
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 50%;
    bottom: 30px;
    right: 50px;
    z-index: 5;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.headphones-inner {
    width: 55px;
    height: 55px;
    background: #e5e7eb;
    border-radius: 50%;
    position: relative;
}

.headphones-inner::before,
.headphones-inner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
    background: #9ca3af;
    border-radius: 10px;
}

.headphones-inner::before {
    top: -10px;
    left: -8px;
}

.headphones-inner::after {
    top: -10px;
    right: -8px;
}

/* Логотип внизу левой панели */
.logo-left {
    color: white;
    font-size: 18px;
    font-weight: 800;
    padding: 15px 20px;
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== ПРАВАЯ ПАНЕЛЬ С ФОРМАМИ ==================== */
.right-panel {
    /* Было flex: 1.45; Тоже ставим 1, теперь они равны */
    flex: 1;

    padding: 35px 35px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #1c1c1e;
}

/* Скрытие скроллбара но сохранение функционала */
.right-panel::-webkit-scrollbar {
    width: 0px;
}

/* Логотип вверху */
.logo {
    color: #4255ff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* ==================== ВКЛАДКИ ==================== */
.tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.tab {
    background: none;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #86868b;
    cursor: pointer;
    padding: 0 0 10px 0;
    position: relative;
    transition: color 0.2s;
}

.tab.active {
    color: #f5f5f7;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0a84ff;
}

/* ==================== КНОПКИ СОЦИАЛЬНЫХ СЕТЕЙ ==================== */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Чуть больше отступ между кнопками */
    margin-bottom: 30px;
}

.social-btn {
    width: 100%;
    padding: 16px 24px;
    background: #2c2c2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f7;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;

    /* Убираем старые стили */
    box-shadow: none;
}

.social-btn:hover {
    background: #3c3c3e;
    transform: translateY(-1px);
}

.social-btn:active {
    transform: translateY(0);
}

.social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.facebook-btn,
.apple-btn {
    color: inherit;
}

/* ==================== РАЗДЕЛИТЕЛЬ ==================== */
.divider {
    text-align: center;
    color: #86868b;
    font-size: 13px;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* ==================== ФОРМЫ ==================== */
.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #d1d1d6;
    margin-bottom: 6px;
}

.label-with-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-icon {
    font-size: 14px;
    color: #9ca3af;
    cursor: help;
}

.label-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    color: #0a84ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ==================== ПОЛЯ ВВОДА ==================== */
.input-wrapper {
    position: relative;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
    background: #2c2c2e;
    color: #f5f5f7;
}

input:focus {
    border-color: #0a84ff;
    background: #3c3c3e;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

/* Кнопка показа пароля */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #86868b;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #6b7280;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* ==================== СЕЛЕКТЫ ДАТЫ ==================== */
.date-selects {
    display: flex;
    gap: 10px;
}

.date-select {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    background: #2c2c2e;
    color: #f5f5f7;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.date-select:focus {
    border-color: #0a84ff;
    background-color: #3c3c3e;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

/* ==================== ЧЕКБОКС ==================== */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #4255ff;
}

.checkbox-group label {
    font-size: 12px;
    font-weight: 400;
    color: #86868b;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

/* ==================== ТЕКСТ С УСЛОВИЯМИ ==================== */
.terms-text {
    font-size: 12px;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.link {
    color: #0a84ff;
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* ==================== КНОПКА ОТПРАВКИ ==================== */
.submit-btn {
    width: 100%;
    padding: 13px;
    background: #0a84ff;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 15px;
}

.submit-btn:hover {
    background: #409cff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==================== RECAPTCHA ==================== */
.recaptcha {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.recaptcha img {
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 35px 25px;
        flex: 1;
        width: 100%;
    }

    .date-selects {
        flex-direction: column;
    }

    .logo {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .right-panel {
        padding: 25px 20px;
    }

    .social-btn {
        font-size: 13px;
        padding: 11px;
    }
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-container.active {
    animation: fadeIn 0.3s ease-in;
}

@keyframes modalDisappear {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ==================== ГЕНИУМ-УВЕДОМЛЕНИЯ (Custom Modals) ==================== */
.genium-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.genium-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.genium-alert {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    padding: 32px;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.genium-alert-overlay.active .genium-alert {
    transform: scale(1);
}

.genium-alert-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.genium-alert-icon.error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.genium-alert-icon.success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.genium-alert-icon.info {
    background: rgba(10, 132, 255, 0.1);
    color: #0a84ff;
}

.genium-alert-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.genium-alert-message {
    font-size: 15px;
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 30px;
}

.genium-alert-btn {
    width: 100%;
    padding: 14px;
    background: #0a84ff;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.genium-alert-btn:hover {
    background: #409cff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.4);
}

.genium-alert-btn:active {
    transform: translateY(0);
}