/* Контейнер-обертка для центрирования на странице */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px); /* Вычитаем примерную высоту хедера */
    padding: 20px;
    overflow: hidden;
}

/* Карточка формы */
.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 98, 255, 0.05);
    border: 1px solid #eef2ff;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #0f172a;
    font-weight: 700;
}

.auth-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Стили полей ввода */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0062ff;
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
}

/* Кнопка во всю ширину */
.btn-auth {
    background: #0062ff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-auth:hover {
    background: #004ecc;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.auth-footer a {
    color: #0062ff;
    text-decoration: none;
    font-weight: 600;
}

/* Адаптация под мобильные устройства */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px;
        border-radius: 20px;
        box-shadow: none; /* На мобилках можно убрать тень для чистоты */
        border: none;
        background: transparent; /* Опционально: карточка сливается с фоном */
    }

    .auth-wrapper {
        min-height: auto;
        padding-top: 40px;
    }
}


.error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    font-weight: 500;
}

input.is-invalid {
    border: 2px solid #e74c3c !important;
}

input.is-invalid:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Общий блок ошибок */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: block !important;
}

