/* Основной контейнер формы */
.ms-auth-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 24px; /* Более мягкое скругление 2026 */
    box-shadow: 0 20px 40px rgba(0,0,0,0.04); /* Очень легкая, глубокая тень */
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    box-sizing: border-box;
}

/* Навигация (Вход / Регистрация) */
.ms-auth-nav {
    display: flex;
    justify-content: center;
    background: #f4f4f4; /* Контейнер для вкладок в виде переключателя */
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 30px;
    gap: 5px;
}

.ms-auth-tab {
    flex: 1;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
    padding: 10px 0;
    border-radius: 8px;
    user-select: none;
}

/* Активная вкладка в виде приподнятой кнопки */
.ms-auth-tab.active {
    color: #000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Убираем старый индикатор-линию */
.ms-auth-tab.active::after { display: none; }

/* Анимация появления */
.ms-form { display: none; }
.ms-form.active {
    display: block;
    animation: msSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ms-form h3 {
    margin: 0 0 25px 0;
    text-align: center;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 800;
}

/* Поля ввода */
.ms-form-group { margin-bottom: 20px; }

.ms-form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
}

.ms-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #eee; /* Тонкая, но четкая граница */
    border-radius: 12px;
    font-size: 15px;
    color: #000;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.ms-form-group input:focus {
    border-color: #000;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.03);
}

/* Чекбокс "Запомнить меня" */
.ms-remember-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.ms-remember-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #000;
    cursor: pointer;
}

.ms-remember-wrap label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* Кнопка отправки (Черная классика 2026) */
.ms-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ms-btn:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ms-btn:active { transform: scale(0.98); }

.ms-google-auth-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.ms-google-auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: #777;
    font-size: 13px;
}

.ms-google-auth-separator::before,
.ms-google-auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e7e7e7;
}

.ms-google-auth-notice {
    margin: 0;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.ms-google-auth-area .g_id_signin,
.ms-google-auth-area iframe {
    max-width: 100% !important;
}

/* Ссылка восстановления пароля */
.ms-forgot-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.ms-forgot-link:hover { color: #000; }

/* Уведомления */
#ms-auth-msg {
    margin-top: 25px;
    font-size: 14px;
    border-radius: 12px;
}

#ms-auth-msg.error {
    color: #d32f2f;
    padding: 14px;
    background: #fff5f5;
}

#ms-auth-msg.success {
    color: #007aff;
    padding: 14px;
    background: #edf5ff;
}

/* Адаптивность */
@media (max-width: 480px) {
    .ms-auth-container {
        margin: 0;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        padding: 40px 20px;
    }
}
