/* Страница входа: центрирование формы по вертикали/горизонтали и фон */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 24px;
}

/* Блок логотипа над формой: центрирование и отступ снизу */
.login-logo {
    width: auto;
    height: auto;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Контейнер формы входа: карточка с белым фоном, скруглением и тенью */
.login-container {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Картинка логотипа: фиксируем ширину и сохраняем пропорции */
.login-logo img {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Заголовок формы входа: типографика и отступы */
.login-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #0a0a0a;
    margin: 0 0 8px;
}

/* Подзаголовок/описание: серый текст под заголовком */
.login-subtitle {
    font-size: 14px;
    line-height: 20px;
    color: #636363;
    margin: 0;
}

/* Форма: вертикальная колонка с равными промежутками между блоками */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Поля формы (Email/Пароль): используем компонент `.field` */
.login-form .field {
    margin-bottom: 0;
}

/* Сообщение об ошибке входа: красная плашка с рамкой и текстом */
.login-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    line-height: 20px;
}

/* Сообщение об успехе */
.login-success {
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 20px;
}

/* Кнопка отправки: широкая основная кнопка с центрированием текста */
.login-submit {
    width: 100%;
    height: 44px;
    background: #1973e1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка отправки при наведении: затемняем фон */
.login-submit:hover {
    background: #1557b0;
}

/* Кнопка отправки при нажатии: ещё чуть темнее фон */
.login-submit:active {
    background: #0f4a8f;
}

/* Кнопка отправки в disabled: серый фон и запрет курсора */
.login-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Заголовок страницы/формы сброса пароля: центрирование и типографика */
.login-reset-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: #0a0a0a;
    margin: 0 0 8px;
    text-align: center;
}

/* Текст-инструкция для сброса пароля: центрирование и серый цвет */
.login-reset-text {
    font-size: 14px;
    line-height: 20px;
    color: #636363;
    margin: 0 0 24px;
    text-align: center;
}

/* Блок «забыли пароль» */
.login-forgot {
    text-align: center;
    margin-top: 16px;
}

.login-forgot__link {
    font-size: 14px;
    line-height: 20px;
    color: #1973e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.login-forgot__link:hover {
    color: #1557b0;
    text-decoration: underline;
}

/* Блок «назад» */
.login-back {
    text-align: center;
    margin-top: 16px;
}

.login-back__link {
    font-size: 14px;
    line-height: 20px;
    color: #1973e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.login-back__link:hover {
    color: #1557b0;
    text-decoration: underline;
}

/* Поля формы: общий компонент (из Portal/styles.css) */
.field {
    margin-bottom: 14px;
}

.field__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.field__label {
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 20px;
    margin: 0;
}

.field__control {
    width: 100%;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 14px;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.field__control::placeholder {
    color: #636363;
}

.field__control:focus {
    border-color: #8fb9e9;
    box-shadow: none;
}
