:root {
    /* New site-wide variables - defined in main.css, but for self-containment/readability */
    --color-deep-forest: #2d4034;
    --color-earth-brown: #5c4a3c;
    --color-stone-gray: #a0a5a3;
    --color-light-sand: #f5f2ec;
    --color-warm-accent: #d48d3f;
    --color-text-dark: #38302a;
    --color-text-light: #f8f8f8;
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 6px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    background-color: var(
        --color-light-sand
    ); /* Use a consistent light background */
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background-color: var(--color-light-sand);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-dark);
    border: none;
    overflow: hidden;
}

.auth-card-header {
    background-color: var(--color-deep-forest);
    color: var(--color-text-light);
    padding: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    border-bottom: none;
}

.auth-card-body {
    padding: 2.5rem;
}

.auth-card-body form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-card-body .mb-3 {
    margin-bottom: 0 !important;
    width: 100%;
}

.auth-card-footer {
    background-color: var(
        --color-stone-gray
    ); /* Lighter background for footer */
    padding: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.form-label-custom {
    color: var(--color-text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom {
    width: 100%;
    border: 1px solid var(--color-stone-gray);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-custom:focus {
    border-color: var(--color-warm-accent);
    box-shadow: 0 0 0 0.2rem rgba(212, 141, 63, 0.25); /* Accent color with transparency */
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.form-check-input-custom:checked {
    background-color: var(--color-warm-accent);
    border-color: var(--color-warm-accent);
}

.form-check-label-custom {
    color: var(--color-text-dark);
}

.btn-primary-custom {
    background-color: var(--color-deep-forest);
    color: var(--color-text-light);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: var(--transition);
    width: 100%;
}

.btn-primary-custom:hover {
    background-color: var(--color-earth-brown);
    box-shadow: var(--shadow-dark);
    transform: translateY(-2px);
}

.btn-outline-custom {
    border: 1px solid var(--color-deep-forest);
    color: var(--color-deep-forest);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background-color: var(--color-deep-forest);
    color: var(--color-text-light) !important;
    box-shadow: var(--shadow-light);
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .auth-card-body {
        padding: 1.5rem;
    }

    .auth-card-header {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .form-control-custom,
    .btn-primary-custom,
    .btn-outline-custom {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    .auth-card-footer {
        padding: 1rem;
    }
}
