/* ==========================================================================
   ПРЕМІУМ СТИЛІ ДЛЯ СТОРІНОК АВТОРИЗАЦІЇ ТА РЕЄСТРАЦІЇ (AUTH.CSS)
   ========================================================================== */

/* Налаштування фону для сторінок входу/реєстрації */
.auth-pages-body {
        background-color: #f8fafc !important; /* М'який світлий фон для контрасту з білою карткою */
}

/* Центральний контейнер з урахуванням висоти фіксованої шапки */
.auth-container {
        min-height: calc(100vh - 280px); /* Вираховуємо висоту під заповнення екрана */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        margin-top: 150px; /* Відсуваємо картку з-під шапки */
}

/* Об'ємна преміум-картка форми */
.auth-card {
        background: #ffffff;
        width: 100%;
        max-width: 480px; /* Компактна ідеальна ширина картки */
        padding: 45px;
        border-radius: 16px; /* Модні закруглені кути */
        box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05),
                    0 0 0 1px rgba(15, 23, 42, 0.02); /* Ледь помітний контур */
        border: none;
}

/* Шапка картки */
.auth-card-header {
        text-align: center;
        margin-bottom: 30px;
}

.auth-card-header h2 {
        font-size: 28px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: -0.5px;
        color: var(--main-text, #1a1a1a);
        margin-bottom: 10px;
}

.auth-card-header p {
        font-size: 14px;
        line-height: 1.5;
        color: #64748b;
        max-width: 360px;
        margin: 0 auto;
}

/* Сучасна форма */
.modern-auth-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
}

.auth-form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
}

.auth-form-group label {
        font-size: 13.5px;
        font-weight: 700;
        color: #475569;
        letter-spacing: -0.1px;
}

/* Контейнер інпуту з іконкою ліворуч */
.input-with-icon {
        position: relative;
        width: 100%;
}

.input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        line-height: 1;
        pointer-events: none;
        filter: grayscale(100%);
        opacity: 0.5;
}

/* Преміальні інпути */
.input-with-icon input {
        width: 100%;
        padding: 14px 16px 14px 46px; /* Залишаємо великий відступ зліва під іконку */
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        font-family: var(--base-font-family, 'Inter', sans-serif);
        font-size: 15px;
        background: #f8fafc; /* Легкий сірий фон всередині */
        color: var(--main-text, #1a1a1a);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ефект неонового фокусу при натисканні */
.input-with-icon input:focus {
        border-color: var(--accent-color, #e53935);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12); /* Фірмове червоне свічення */
        outline: none;
}

.input-with-icon input::placeholder {
        color: #94a3b8;
}
/* Масивна зручна кнопка відправки форми */
.auth-submit-btn {
        padding: 15px 24px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 10px;
        margin-top: 10px;
        background-color: var(--accent-color, #e53935);
        color: #ffffff;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s ease;
        box-shadow: 0 4px 12px rgba(229, 57, 53, 0.15);
}

.auth-submit-btn:hover {
        background-color: #c62828; /* Темніший червоний при наведенні */
}

/* Підвал картки: посилання переходів */
.auth-card-footer {
        display: flex;
        justify-content: center;
        gap: 6px;
        font-size: 14px;
        margin-top: 5px;
        color: #64748b;
}

.auth-card-footer a {
        color: var(--accent-color, #e53935);
        font-weight: 700;
        text-decoration: none;
        transition: color 0.15s ease;
}

.auth-card-footer a:hover {
        text-decoration: underline;
}

/* ==========================================================================
   СУЧАСНИЙ БЕЗРАМКОВИЙ ТАБ-БАР (ПЕРЕМИКАЧ ФІЗ / ЮР ОСОБИ)
   ========================================================================== */
.auth-tabs-switcher {
        display: flex;
        background: #f1f5f9; /* М'яка сіра підкладка */
        padding: 4px;
        border-radius: 12px;
        margin-bottom: 25px;
        border: 1px solid rgba(15, 23, 42, 0.02);
}

.tab-switch-btn {
        flex: 1;
        background: transparent;
        border: none;
        padding: 12px 10px;
        font-family: var(--base-font-family, 'Inter', sans-serif);
        font-size: 13.5px;
        font-weight: 700;
        color: #64748b;
        cursor: pointer;
        border-radius: 9px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
}

/* Ефект активного табу: М'яко випливає об'ємна біла підкладка */
.tab-switch-btn.active {
        background: #ffffff;
        color: var(--main-text, #1a1a1a);
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

/* Візуальний роздільник (якщо знадобиться) */
.border-divider {
        border-top: 1px dashed #e2e8f0;
        margin: 15px 0;
        height: 1px;
}

/* ==========================================================================
   АДАПТИВНІСТЬ ДЛЯ СТОРІНОК ФОРМ (МОБІЛЬНІ)
   ========================================================================== */
@media (max-width: 576px) {
        .auth-container {
                margin-top: 190px; /* Відступ під вищу мобільну шапку */
                padding: 30px 15px;
        }

        .auth-card {
                padding: 30px 20px;
                border-radius: 14px;
        }

        .auth-card-header h2 {
                font-size: 22px;
        }

        .tab-switch-btn {
                font-size: 12.5px;
                padding: 10px 5px;
        }
}
