/**
 * МОБИЛЬНЫЙ ПОРТРЕТ (Исправленная версия)
 * Страница: index.php (Вход)
 * Требование: Все закомментировано, полный код.
 */

/* 1. БАЗОВЫЙ СБРОС (Reset) - Чтобы убить встроенные отступы браузера */
html, body, div, span, form, input, button, img {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box; /* Это критично для полей ввода */
}

:root { 
    --blue: #6366f1; 
    --bg: #ffffff; /* На мобилке лучше чистый белый фон */
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background: var(--bg); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    align-items: center; 
    justify-content: center; /* Центрируем карточку вертикально */
    padding: 20px;
}

/* Переключатель языков - вверху */
.lang-switcher { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    display: flex; 
    gap: 8px; 
    z-index: 100;
}

.lang-btn { 
    text-decoration: none; 
    font-weight: 900; 
    color: #000; 
    padding: 8px 14px; 
    border-radius: 10px; 
    background: #f1f5f9; 
    font-size: 12px;
}

.lang-btn.active { 
    background: var(--blue); 
    color: white; 
}

/* Основная карточка входа - на мобильном она занимает всю ширину */
.login-card { 
    width: 100%; 
    max-width: 400px; /* Чтобы на планшетах не была огромной */
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Динамический логотип - ЖЕСТКО ОГРАНИЧИВАЕМ РАЗМЕР */
.logo-img { 
    width: 90%; /* Занимает 90% от ширины карточки */
    max-width: 280px; 
    height: auto; 
    margin-bottom: 30px; 
}

/* Поля ввода */
input { 
    width: 100%; 
    padding: 18px; 
    margin-bottom: 15px; 
    border: 2px solid #e2e8f0; 
    border-radius: 18px; 
    font-family: inherit; 
    font-weight: 700; 
    outline: none; 
    font-size: 16px; /* Меньше 16px на iOS вызывает автоматический зум */
}

input:focus {
    border-color: var(--blue);
    background: #f8faff;
}

/* Кнопка входа - КРУПНАЯ ПОД ПАЛЕЦ */
.btn-login { 
    width: 100%; 
    padding: 18px; 
    border: none; 
    border-radius: 18px; 
    background: var(--blue); 
    color: white; 
    font-weight: 900; 
    font-size: 17px; 
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Копирайт - Убираем в самый низ */
.footer-info { 
    position: absolute; 
    bottom: 15px; 
    width: 100%;
    text-align: center;
    color: #94a3b8; 
    font-size: 11px; 
    font-weight: 700; 
}