/* Стили для форм авторизации */
.alert {
    padding: 12px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert p {
    margin: 0;
}

.login__input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.login__resend {
    margin-top: 20px;
    text-align: center;
}

.login__resend-btn {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.login__resend-btn:hover {
    color: #0056b3;
}

/* Улучшенные стили для полей ввода */
.login__input[type="tel"],
.login__input[type="text"] {
    font-family: "Arial", sans-serif;
    letter-spacing: 1px;
}

.login__input[maxlength="5"] {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
}

/* Анимация для кнопок */
.login__button {
    transition: all 0.3s ease;
}

.login__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login__button:active {
    transform: translateY(0);
}

/* Стили для блока пользователя в header */
.actions-header__user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.user-name {
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.logout-btn {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
}

.logout-btn:hover {
    color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .alert {
        padding: 10px 15px;
        font-size: 13px;
    }

    .login__input[maxlength="5"] {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .actions-header__user {
        gap: 5px;
    }

    .user-name {
        max-width: 80px;
        font-size: 12px;
    }

    .logout-btn {
        font-size: 11px;
    }
}
