/* Экран-обертка */
.w_screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 24px;
}

/* Контейнер контента */
.w_container {
    display: flex;
    flex-direction: column; /* MOBILE FIRST: Колонка */
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 960px;
    /* gap удален, используем margin у дочерних элементов */
}

/* Левая часть (Иллюстрация) */
.w_col_visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* ЗАМЕНА GAP: Отступ снизу на мобильных устройствах */
    margin-bottom: 40px; 
}

/* Правая часть (Текст и кнопки) */
.w_col_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 420px;
}

/* =========================================
   3. ЭЛЕМЕНТЫ ИНТЕРФЕЙСА
   ========================================= */

/* Логотип/Маскот */
.w_mascot_wrap {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 900px) {
    .w_mascot_wrap {
        width: 280px;
        height: 280px;
    }
}

.w_mascot {
    font-size: 100%; /* Заполняет родителя */
    width: 100%;
    height: 100%;
    color: var(--c-accent-green);
    filter: drop-shadow(0 15px 30px rgba(35, 172, 94, 0.2));
    animation: floatLogo 6s ease-in-out infinite;
}

/* Типографика */
.w_title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0; /* Чуть больше воздуха снизу */
    color: var(--c-text-main);
    line-height: 1.2;
}

.w_subtitle {
    font-size: 15px;
    color: var(--c-text-muted);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* =========================================
   4. ФОРМЫ И ГРУППЫ КНОПОК БЕЗ GAP
   ========================================= */

/* Контейнер формы */
.w_form {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* gap удален */
}

/* ЗАМЕНА GAP для формы: 
   Всем дочерним элементам кроме последнего добавляем отступ снизу */
.w_form > *:not(:last-child) {
    margin-bottom: 16px;
}

/* Группа кнопок (для экрана приветствия) */
.w_btn_group {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* gap удален */
}

/* ЗАМЕНА GAP для кнопок */
.w_btn_group > *:not(:last-child) {
    margin-bottom: 16px;
}

/* =========================================
   5. КОМПОНЕНТЫ (INPUTS & BUTTONS)
   ========================================= */

/* Поля ввода */
.w_input {
    width: 100%;
    height: 52px;
    background: var(--c-bg-card);
    border: 2px solid var(--c-border);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 16px;
    color: white;
    font-family: var(--font_main);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    /* Убираем дефолтные стили iOS */
    -webkit-appearance: none; 
}

.w_input::placeholder {
    color: #555;
    font-weight: 500;
}

.w_input:focus {
    border-color: var(--c-accent-blue);
    background: #252525;
}

/* Кнопки - Общий класс */
.w_btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Primary (Синяя) */
.w_btn_primary {
    background: var(--c-accent-blue);
    color: white;
    box-shadow: 0 8px 25px rgba(24, 101, 242, 0.3);
}

.w_btn_primary:hover {
    background: #2b75ff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(24, 101, 242, 0.4);
}

.w_btn_primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(24, 101, 242, 0.3);
}

/* Secondary (Контурная) */
.w_btn_secondary {
    background: transparent;
    border: 2px solid var(--c-border);
    color: var(--c-accent-blue);
    box-shadow: none;
}

.w_btn_secondary:hover {
    border-color: var(--c-text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.w_btn_secondary:active {
    transform: scale(0.98);
}

/* Ссылка внизу формы */
.w_link_row {
    margin-top: 24px;
    font-size: 14px;
    color: var(--c-text-muted);
    font-weight: 600;
}

.w_link {
    color: var(--c-accent-blue);
    text-decoration: none;
    margin-left: 4px;
    font-weight: 800;
}

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

/* Анимация */
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
