/* Auth Module CSS */
:root {
    --bg-auth: var(--bg-dark, #0a0a0c);
    --auth-card-bg: var(--bg-surface, #111114);
    --auth-card-border: var(--border, rgba(255, 255, 255, 0.1));
    --auth-overlay-bg: rgba(0, 0, 0, 0.4);
    --auth-overlay-dark-bg: rgb(0 0 0 / 63%);
    
}

body.auth-wrapper {
    background: radial-gradient(circle at center, var(--bg-sidebar) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-main, #fff);
}

.auth-card {
    background: var(--auth-card-bg);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--auth-card-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo-box {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.auth-logo-box i {
    color: var(--primary);
    width: 32px !important;
    height: 32px !important;
}

.auth-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: var(--text-muted, #888);
    font-size: 15px;
    margin-top: 8px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted, #aaa);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alert-error {
    background: rgba(var(--danger-rgb, 239, 68, 68), 0.1);
    color: var(--danger, #ef4444);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    border: 1px solid rgba(var(--danger-rgb, 239, 68, 68), 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.btn-loader i {
    font-size: 1.1rem;
}

.password-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-password-toggle {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.btn-password-toggle:hover {
    color: var(--primary);
}

.btn-password-toggle i {
    width: 18px !important;
    height: 18px !important;
}

.form-control.pr-10 {
    padding-right: 50px !important;
}

/* ---------------------------------------------------------
   Rule 34: Avoid Inline Styles - Helper Classes
   --------------------------------------------------------- */

body.auth-wrapper.has-bg {
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}

.auth-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--auth-overlay-dark-bg); 
    z-index: 0;
}

.auth-card.glassmorphism {
    backdrop-filter: blur(12px); 
    background: var(--auth-card-bg); 
    border: 1px solid var(--auth-card-border);
}

.auth-logo-box img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
}

/* ─────────────────────────────────────────────────────────
   Session Warning & Animations
   ───────────────────────────────────────────────────────── */

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-session-bottom {
    margin-top: 25px; 
    padding: 16px; 
    background: rgba(var(--danger-rgb, 220, 38, 38), 0.1); 
    border-radius: 12px; 
    border: 1px solid rgba(var(--danger-rgb, 220, 38, 38), 0.2); 
    color: var(--danger, #ef4444); 
    font-size: 0.85rem; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    animation: slideIn 0.3s ease;
}

.alert-session-bottom .alert-header {
    display: flex; 
    align-items: center; 
    gap: 12px;
}

.alert-session-bottom .alert-header i {
    font-size: 1.25rem;
}

.btn-danger-soft {
    background: var(--danger, #ef4444); 
    border: none; 
    color: white; 
    padding: 12px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.85rem; 
    font-weight: 700; 
    transition: all 0.2s;
    width: 100%;
}

.btn-danger-soft:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--danger-rgb, 220, 38, 38), 0.3);
}