/*
 * Auth pages (CakeDC/Users overridden templates): register, login,
 * request-reset-password, request-login-link.
 *
 * Shared, self-contained styles for the public authentication pages. Scoped under
 * `.auth-page` so nothing leaks to the rest of the app. Follows the site style
 * line (Inter font from the layout, brand blue, rounded inputs). The tall
 * `.auth-section` min-height keeps the footer at the bottom even with short forms.
 */
.auth-page {
    --brand: #086ad8;
    --brand-700: #0a4aa3;
    --ink: #0b1220;
    --muted: #5a6a82;
    --line: #e5eaf2;
    --soft: #f5f8fd;
    --r-lg: 24px;
    --shadow-lg: 0 24px 60px rgba(11, 18, 32, .12);
}

/* Central section — min-height pushes the footer down. */
.auth-page .auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 70px 0 90px;
    background: #fff;
}

/* Form card. */
.auth-page .auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid var(--brand);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(8, 106, 216, .10);
    padding: 40px 38px;
    color: var(--ink);
}

.auth-page .auth-card__head {
    text-align: center;
    margin-bottom: 26px;
}
.auth-page .auth-card__head h1 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}
.auth-page .auth-card__hint {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

/* Fields. */
.auth-page .auth-field {
    margin-bottom: 18px;
}
.auth-page .auth-field label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}
.auth-page .auth-field input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font: inherit;
    background: #fdfefe;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-page .auth-field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(8, 106, 216, .12);
}
.auth-page .auth-field input.is-invalid {
    border-color: #d64545;
    background: #fff7f7;
}
.auth-page .auth-pswmeter {
    margin-top: 10px;
}
.auth-page .auth-pswmeter #pswmeter-message {
    margin-top: 6px;
    font-size: .82rem;
    color: #5a6a82;
}
.auth-page .auth-field input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(214, 69, 69, .14);
}
.auth-page .error-message {
    display: block;
    margin-top: 6px;
    color: #d64545;
    font-size: .82rem;
}

/* Checkbox rows (remember me / terms). */
.auth-page .auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    color: var(--muted);
    margin: 4px 0 20px;
    cursor: pointer;
}
.auth-page .auth-check input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--brand);
    flex: 0 0 auto;
}
.auth-page .auth-check a {
    color: var(--brand);
}

/* Submit button spans the card. */
.auth-page .auth-card .ht-btn {
    width: 100%;
}

/* Footer links under the form. */
.auth-page .auth-links {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .92rem;
    color: var(--muted);
}
.auth-page .auth-links a {
    color: var(--brand);
    font-weight: 600;
}
.auth-page .auth-links .sep {
    margin: 0 8px;
    color: var(--line);
}

/* ── Social login ── */
.auth-page .auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 20px;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}
.auth-page .auth-divider::before,
.auth-page .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-page .auth-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-page .auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    transition: background .15s, border-color .15s, box-shadow .15s;
    cursor: pointer;
}
.auth-page .auth-social__btn:hover {
    background: var(--soft);
    border-color: #b0bdd0;
    box-shadow: 0 2px 8px rgba(11, 18, 32, .08);
}

.auth-page .auth-social__icon {
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .auth-page .auth-card {
        padding: 32px 22px;
    }
}
