/* Sign-in and password pages (Components/Account/Pages). Global stylesheet; the auth-* prefix keeps it
   from affecting anything else. Palette matches the site: navy #383D78, gold #BF8F00 / #e0b23a. */

.auth-shell {
    --auth-navy: #383D78;
    --auth-navy-deep: #262a58;
    --auth-gold: #BF8F00;
    --auth-gold-bright: #e0b23a;
    --auth-ink: #1f2a44;
    --auth-text: #4a5875;
    --auth-muted: #6b7895;
    --auth-border: #e3ebf7;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 3rem 1rem 4rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(224, 178, 58, 0.16), transparent 40%),
        linear-gradient(180deg, rgba(31, 36, 82, 0.86), rgba(31, 36, 82, 0.94)),
        url("/images/home1-bg2.png") center / cover no-repeat;
    font-family: Lato, sans-serif;
}

/* ---------- Card ---------- */
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.25rem 2.25rem 2rem;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(10, 12, 40, 0.35);
    animation: auth-rise 0.25s ease;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-brand img {
    height: 64px;
    width: auto;
}

.auth-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef0fb;
    color: var(--auth-navy);
    font-size: 1.75rem;
}

.auth-icon.success {
    background: #e7f6ec;
    color: #18794e;
}

.auth-icon.warn {
    background: #fff4e5;
    color: #b54708;
}

.auth-icon.danger {
    background: #fdecec;
    color: #b42318;
}

.auth-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--auth-gold);
    margin-bottom: 0.4rem;
}

.auth-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--auth-ink);
    margin: 0 0 0.45rem;
}

.auth-sub {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- Form ---------- */
.auth-card .form-floating {
    margin-bottom: 0.9rem;
}

.auth-card .form-floating > .form-control {
    height: 56px;
    border: 1.5px solid #d6deec;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--auth-ink);
}

.auth-card .form-floating > label {
    color: var(--auth-muted);
}

.auth-card .form-control:focus {
    border-color: var(--auth-navy);
    box-shadow: 0 0 0 4px rgba(56, 61, 120, 0.14);
}

.auth-card .form-control.invalid,
.auth-card .form-control.modified.invalid {
    border-color: #d92d20;
}

.auth-card .validation-message,
.auth-card .text-danger {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #b42318 !important;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.25rem 0 1.25rem;
    font-size: 0.9rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--auth-text);
    cursor: pointer;
}

.auth-check .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    border: 1.5px solid #b9c3d6;
    cursor: pointer;
}

.auth-check .form-check-input:checked {
    background-color: var(--auth-navy);
    border-color: var(--auth-navy);
}

.auth-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(56, 61, 120, 0.18);
    border-color: var(--auth-navy);
}

.auth-link {
    color: var(--auth-navy);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-navy);
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(56, 61, 120, 0.3);
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-btn:hover {
    background: #2f3465;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(56, 61, 120, 0.36);
}

.auth-btn i {
    color: var(--auth-gold-bright);
}

.auth-btn-ghost {
    background: #fff;
    color: var(--auth-navy);
    border: 1.5px solid #d6deec;
    box-shadow: none;
}

.auth-btn-ghost:hover {
    background: #eef0fb;
    color: var(--auth-navy);
    box-shadow: none;
}

.auth-alt {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.92rem;
    color: var(--auth-muted);
}

.auth-alt i {
    margin-right: 0.25rem;
}

/* Status / error messages (StatusMessage component renders a Bootstrap alert) */
.auth-card .alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    border: 0;
    border-radius: 12px;
    font-size: 0.9rem;
}

.auth-card .alert-danger {
    background: #fdecec;
    color: #912018;
}

.auth-card .alert-success {
    background: #e7f6ec;
    color: #0f5c3a;
}

.auth-note {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: #f4f7fc;
    color: var(--auth-text);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Below the card */
.auth-foot {
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    text-align: center;
}

.auth-foot a {
    color: var(--auth-gold-bright);
    font-weight: 700;
    text-decoration: none;
}

.auth-foot a:hover {
    text-decoration: underline;
}

@keyframes auth-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 575.98px) {
    .auth-shell {
        padding: 1.5rem 0.75rem 3rem;
        justify-content: flex-start;
    }

    .auth-card {
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 1.4rem;
    }
}
