/* CSS Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body, html { height: 100%; width: 100%; }

/* Layout */
.login-container { display: flex; height: 100vh; width: 100vw; overflow: hidden; }

/* Left Side */
.login-left {
    width: 40%;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
}
/* Subtle Pattern */
.login-left::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.brand-logo { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; z-index: 1; }
.brand-desc { font-size: 1.1rem; line-height: 1.6; opacity: 0.9; margin-bottom: 40px; max-width: 400px; z-index: 1; }
.features { display: flex; flex-direction: column; gap: 20px; z-index: 1; }
.feature-item { display: flex; align-items: center; gap: 15px; font-size: 1rem; }
.feature-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* Right Side */
.login-right {
    width: 60%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Login Card */
.login-card {
    background: white;
    width: 400px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    animation: fadeUp 0.5s ease-out;
}

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

.mobile-logo { display: none; }
.login-header { margin-bottom: 30px; text-align: center; }
.login-title { font-size: 26px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.login-subtitle { font-size: 14px; color: #64748b; }

/* Form Elements */
.form-group { margin-bottom: 20px; position: relative; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }

.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; pointer-events: none; }

.form-input {
    width: 100%;
    height: 44px;
    padding-left: 40px; /* Space for icon */
    padding-right: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
    background: white;
}
.form-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }

/* Password Toggle */
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94a3b8; background: none; border: none; padding: 0; }
.toggle-password:hover { color: #475569; }

/* Options Row */
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 13px; }
.remember-me { display: flex; align-items: center; gap: 6px; color: #475569; cursor: pointer; }
.forgot-password { color: #2563eb; text-decoration: none; font-weight: 500; }
.forgot-password:hover { text-decoration: underline; }

/* Button */
.login-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(37,99,235,0.25); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Error Message */
.error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 8px;
}

/* Footer */
.login-footer {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .login-left { display: none; }
    
    .login-right { 
        width: 100%; 
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); 
        padding: 10px;
    }
    
    .login-card { 
        width: 100%; 
        max-width: 400px; 
        box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
        border: none; 
        padding: 25px 20px;
    }

    .mobile-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 24px;
        font-weight: 800;
        color: #1e3a8a;
        margin-bottom: 10px;
    }

    .login-header { margin-bottom: 15px; }
    .login-title { font-size: 20px; margin-bottom: 4px; }
    .login-subtitle { font-size: 13px; }

    .form-group { margin-bottom: 12px; }
    .form-label { margin-bottom: 4px; }
    .form-input { height: 40px; }
    .login-btn { height: 40px; }
    .form-options { margin-bottom: 15px; }

    .login-footer {
        color: rgba(255, 255, 255, 0.7);
        bottom: 10px;
        font-size: 11px;
    }
}
@keyframes swalShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
  100% { transform: translateX(0); }
}
.shake-modal {
  animation: swalShake 0.4s ease-in-out !important;
}
@keyframes btnHighlightPulse {
  0% { box-shadow: none; transform: scale(1); }
  50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.4), 0 0 20px rgba(37, 99, 235, 0.8); transform: scale(1.05); }
  100% { box-shadow: none; transform: scale(1); }
}
.highlight-understood-btn {
  animation: btnHighlightPulse 0.4s ease-in-out !important;
}

