/* Вход и восстановление пароля. Цвета — из палитры сайта (переменные в site.css) */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 2.5rem 0 1rem;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 2.25rem 2rem 2rem;
    border-radius: var(--hc-radius);
    background: #fff;
    box-shadow: var(--hc-shadow);
    text-align: center;
}

    .auth-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        border-radius: var(--hc-radius) var(--hc-radius) 0 0;
        background: linear-gradient(90deg, var(--hc-primary), var(--hc-sky));
    }

    .auth-card form {
        text-align: left;
    }

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: .9rem;
    border-radius: 50%;
    background: var(--hc-sky-soft);
    color: var(--hc-primary);
    font-size: 2rem;
}

.auth-icon-success {
    background: #e6f4ea;
    color: #1e7e34;
}

.auth-title {
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--hc-primary);
}

.auth-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5866;
}

/* Поля с иконкой */
.auth-card .form-label {
    color: #4a5866;
    font-weight: 600;
}

.auth-field {
    position: relative;
}

    .auth-field > i {
        position: absolute;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
        color: #8aa4c2;
        font-size: 1.1rem;
        pointer-events: none;
    }

    .auth-field .form-control {
        padding: .7rem 1rem .7rem 2.7rem;
        border: 2px solid #dbe8f7;
        border-radius: 12px;
        font-size: 1.05rem;
    }

        .auth-field .form-control:focus {
            border-color: var(--hc-sky);
            box-shadow: 0 0 0 4px rgba(117, 175, 245, 0.2);
        }

.auth-forgot {
    margin-bottom: 1.25rem;
    text-align: right;
    font-size: .92rem;
}

    .auth-forgot a,
    .auth-back a {
        color: var(--hc-primary);
        font-weight: 500;
        text-decoration: none;
    }

        .auth-forgot a:hover,
        .auth-back a:hover {
            text-decoration: underline;
        }

/* Кнопки */
.auth-btn,
.auth-btn-outline {
    width: 100%;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    font-size: 1.08rem;
    font-weight: 600;
}

.auth-btn {
    box-shadow: 0 6px 16px rgba(27, 110, 194, 0.3);
}

    .auth-btn:hover {
        background-color: var(--hc-primary-dark);
    }

.auth-btn-outline {
    border: 2px solid var(--hc-primary);
    color: var(--hc-primary);
    background: #fff;
}

    .auth-btn-outline:hover {
        color: #fff;
        background: var(--hc-primary);
    }

.auth-divider {
    height: 1px;
    margin: 1.25rem 0;
    background: #e8f0fa;
}

.auth-back {
    margin-top: 1.25rem;
    text-align: center;
}

/* Ошибки валидации */
.auth-card .validation-summary-errors {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    background: #fdecee;
    color: #c82333;
}

    .auth-card .validation-summary-errors ul {
        margin: 0;
        padding-left: 1.1rem;
    }

@media (max-width: 575px) {
    .auth-page {
        padding-top: 1.25rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }
}
