.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    background: var(--color-maroon-dark);
}

.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: 220px; padding: 2rem !important; }
}

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    color: #fff;
    overflow: hidden;
}
.auth-brand-panel.login-brand-bg {
    background: linear-gradient(145deg, rgba(61, 15, 31, 0.75) 0%, rgba(92, 26, 46, 0.75) 45%, rgba(74, 21, 40, 0.75) 100%), url('/images/login_bg.png') no-repeat;
    background-size: cover;
    background-position: center;
}
.auth-brand-panel.register-brand-bg {
    background: linear-gradient(145deg, rgba(61, 15, 31, 0.75) 0%, rgba(92, 26, 46, 0.75) 45%, rgba(74, 21, 40, 0.75) 100%), url('/images/register_bg.png') no-repeat;
    background-size: cover;
    background-position: center;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 50%;
}

.auth-brand-inner { position: relative; z-index: 1; max-width: 400px; }

.auth-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.auth-logo span { color: #fff; font-weight: 500; }

.auth-tagline {
    font-size: 1.35rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-features i { color: var(--color-gold); font-size: 1.1rem; }

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--color-beige);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.auth-card h1 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    margin-bottom: 0.35rem;
    color: var(--color-maroon-dark);
}

.auth-card .auth-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.auth-input-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input-wrap .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.auth-input-wrap .form-control {
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid rgba(92, 26, 46, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--color-beige);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input-wrap .form-control:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
    background: #fff;
}

.auth-input-wrap .toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--color-text-muted);
    padding: 0.25rem;
    cursor: pointer;
}

.auth-input-wrap .toggle-password:hover { color: var(--color-maroon); }

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-alert-success {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.12), rgba(64, 145, 108, 0.08));
    border: 1px solid rgba(45, 106, 79, 0.35);
    color: #1b4332;
    font-size: 0.9rem;
    animation: authFadeIn 0.4s ease;
}

.auth-alert-success i { font-size: 1.25rem; color: #2d6a4f; }

.auth-alert-error {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-sm);
    background: rgba(180, 35, 24, 0.08);
    border: 1px solid rgba(180, 35, 24, 0.25);
    color: #9b2226;
    font-size: 0.9rem;
}

.auth-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-back-home:hover { color: var(--color-maroon); }

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-success-banner {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(45, 106, 79, 0.4);
    font-size: 0.95rem;
    font-weight: 500;
    animation: authSlideDown 0.5s ease, authFadeOut 0.4s ease 4.5s forwards;
}

@keyframes authSlideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes authFadeOut {
    to { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
}
