/* ============================================================
   AUTH & LOGIN SYSTEM (MODERNIZED & OPTIMIZED)
   ============================================================ */
.auth-container {
    height: 100vh; /* Strict height to prevent scrolling */
    display: flex;
    background: #f1f5f9;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.auth-form-side {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out header, form, and footer */
    padding: 3rem 4rem;
    position: relative;
    z-index: 20;
    background: #ffffff !important;
    box-shadow: 10px 0 40px rgba(0,0,0,0.05);
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background-color: #00008B !important;
    border-color: #00008B !important;
    color: #ffffff !important; /* Ensure visibility */
}

.btn-primary:hover {
    background-color: #000066 !important;
    border-color: #000066 !important;
}

.auth-form-side a:not(.btn) {
    color: #00008B !important;
}

.auth-slider-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.auth-slider-side .carousel-item img {
    object-fit: cover;
    opacity: 0.7; /* Increased visibility */
    transition: transform 10s linear;
}

.auth-slider-side .carousel-item.active img {
    transform: scale(1.15);
}

.auth-caption {
    position: absolute;
    bottom: 15%;
    left: 8%;
    right: 8%;
    z-index: 30;
    animation: authFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-caption .sub {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: #ff0000; /* Bright Red for accent */
    border-radius: 4px;
}

.auth-caption h2 {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness: Mobile & Tablet */
@media (max-width: 991px) {
    .auth-container { 
        flex-direction: column-reverse; 
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .auth-form-side { 
        max-width: 100%; 
        padding: 2rem 1.5rem; 
        min-height: 60vh; 
        box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    }
    .auth-slider-side { 
        height: 35vh; 
        flex: none; 
    }
    .auth-caption { 
        bottom: 25px; 
        left: 20px; 
        right: 20px; 
    }
    .auth-caption h2 { 
        font-size: 1.8rem; 
        letter-spacing: -1px; 
    }
}

/* Auth Card refinements - LIGHT THEME */
.auth-card {
    background: #ffffff;
    border: none;
    border-radius: 0; /* Clean industrial look */
    padding: 0;
    box-shadow: none;
}

.auth-form-side .form-control {
    color: #0f172a !important;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.auth-form-side .text-muted {
    color: #64748b !important;
}

.auth-form-side h1 {
    color: #0f172a;
}

.alert-danger {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff0000 !important;
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
}

@media (max-height: 700px) {
    .auth-form-side { padding: 1.5rem 3rem; }
    .auth-form-side .mb-5 { margin-bottom: 2rem !important; }
}

/* Industrial Boxed Inputs */
.auth-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.25rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input-group:focus-within {
    border-color: #00008B;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 139, 0.08);
}

.auth-input-group i {
    color: #334155; /* Darker Slate for better contrast */
    font-size: 1.1rem;
    margin-right: 0.75rem;
    transition: color 0.3s ease;
}

.auth-input-group:focus-within i {
    color: #00008B;
}

.auth-input-group .form-control {
    border: none !important;
    background: transparent !important;
    padding: 0.75rem 0 !important;
    font-size: 0.95rem;
    font-weight: 700 !important;
    box-shadow: none !important;
    color: #0f172a !important;
}

.auth-input-group .form-control:focus {
    outline: none !important;
}

.auth-input-group .form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 700;
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Biometric Premium UI */
.biometric-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.biometric-overlay.active {
    opacity: 1;
    visibility: visible;
}

.scanner-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.scanner-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #22c55e;
    box-shadow: 0 0 15px #22c55e, 0 0 30px #22c55e;
    z-index: 20;
    animation: scannerMove 2s infinite ease-in-out;
}

@keyframes scannerMove {
    0%, 100% { top: 0; opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { top: 100%; }
}

.biometric-status {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: center;
}

.biometric-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #22c55e;
    border-radius: 50%;
    animation: biometricPulse 2s infinite;
}

@keyframes biometricPulse {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 180%; height: 180%; opacity: 0; }
}

.biometric-emp-input-wrapper {
    max-width: 320px;
    width: 90%;
    margin-top: 1.5rem;
    animation: authFadeUp 0.5s ease;
}

.biometric-emp-input-wrapper .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-radius: 12px;
    padding: 0.8rem !important;
}

.biometric-emp-input-wrapper .form-control:focus {
    border-color: #22c55e !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2) !important;
}

