/**
 * Authentication pages: full-viewport gradient with floating white card.
 */
.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(145deg, #f6f9ef 0%, #d4e4b8 38%, #9cbd6a 72%, #8eb654 100%);
}

[data-bs-theme="dark"] .auth-body {
    background: linear-gradient(145deg, #3d4a2e 0%, #2f3d24 50%, #1e2618 100%);
}

:root {
    --auth-card-radius: 24px;
    --auth-input-bg: #e8f0fe;
    --auth-link-color: #7a9048;
    --auth-brand-green: #8eb654;
}

.auth-split {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-brand-panel {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    background: transparent;
    padding: 2rem 1.5rem;
}

@media (max-width: 991.98px) {
    .auth-brand-panel {
        display: none !important;
    }

    .auth-panel-cream {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1.25rem 1rem;
        justify-content: center;
    }
}

.auth-logo-tile {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-logo-tile img {
    width: 44px;
    height: 44px;
    display: block;
}

.auth-brand-inner {
    max-width: 420px;
}

.auth-panel-cream {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem 2rem;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: min(440px, 100%);
    background: #fff;
    border-radius: var(--auth-card-radius);
    box-shadow: 0 12px 40px rgba(46, 56, 30, 0.12);
    padding: 2rem 1.75rem;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .auth-brand-panel {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        min-width: 0;
        padding: 2.5rem 1.5rem;
        box-sizing: border-box;
    }

    .auth-panel-cream {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        min-width: 0;
        align-items: center;
        justify-content: center;
        padding: 2rem min(1.75rem, 4vw);
    }

    .auth-card {
        width: 100%;
        max-width: min(460px, calc(50vw - 2.5rem));
        padding: 7.5rem 2.5rem;
    }
}

.auth-input.form-control {
    background-color: var(--auth-input-bg);
    border: 1px solid rgba(142, 182, 84, 0.15);
    border-radius: 12px;
    padding: 0.65rem 1rem;
}

.auth-input.form-control:focus {
    background-color: #fff;
    border-color: var(--auth-brand-green);
    box-shadow: 0 0 0 0.2rem rgba(142, 182, 84, 0.2);
}

.auth-link {
    color: var(--auth-link-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-link:hover {
    color: var(--auth-brand-green);
    text-decoration: underline;
}

.auth-remember .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    border-radius: 0.35rem;
    border-color: rgba(142, 182, 84, 0.45);
    cursor: pointer;
}

.auth-remember .form-check-input:focus {
    border-color: var(--auth-brand-green);
    box-shadow: 0 0 0 0.2rem rgba(142, 182, 84, 0.25);
}

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

.auth-remember .form-check-label {
    cursor: pointer;
    user-select: none;
}

[data-bs-theme="dark"] .auth-remember .form-check-label {
    color: #c5c9bc !important;
}

[data-bs-theme="dark"] .auth-logo-tile {
    background: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .auth-card {
    background: #1e1f1c;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .auth-input.form-control {
    background-color: #2c2e28;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e9ebe5;
}

[data-bs-theme="dark"] .auth-input.form-control:focus {
    background-color: #32342e;
    border-color: var(--auth-brand-green);
}

[data-bs-theme="dark"] .auth-link {
    color: #b8c98a;
}

[data-bs-theme="dark"] .auth-card h1.text-gray-900,
[data-bs-theme="dark"] .auth-card .form-label {
    color: #e9ebe5 !important;
}

[data-bs-theme="dark"] .auth-card .text-gray-500,
[data-bs-theme="dark"] .auth-card .text-gray-600 {
    color: #b0b5a8 !important;
}

[data-bs-theme="dark"] .auth-card p:not(.text-danger) {
    color: #c5c9bc;
}
