/* --- CONFIGURATION &amp; VARIABLES --- */
:root {
    --brand-yellow: #FFCC00;
    --brand-yellow-hover: #E6B800;
    --brand-navy: #1A2A40;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --input-bg: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

/* --- SKELETON LOADER --- */
#skeleton-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #ffffff; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.skeleton-box {
    width: 320px; height: 45px; background: #f0f0f0; margin-bottom: 20px;
    border-radius: 12px; position: relative; overflow: hidden;
}
.skeleton-box::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 1.8s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* --- MAIN LAYOUT --- */
body, html {
    margin: 0; padding: 0; height: 100%;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f7f6;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* LEFT PANEL */
.login-left {
    flex: 1.3;
    background: linear-gradient(135deg, rgba(26, 42, 64, 0.85), rgba(26, 42, 64, 0.95)),
    url("/savvy/jakarta.faces.resource/images/officepic.png.xhtml?ln=mirage-layout");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 5%;
    text-align: center;
}

.left-content h2 { font-size: 2.8rem; margin-bottom: 1.5rem; font-weight: 800; line-height: 1.2; }

/* RIGHT PANEL */
.login-right {
    flex: 0.7;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-card { width: 100%; max-width: 420px; z-index: 1; }

.form-header { text-align: center; margin-bottom: 35px; }
.form-header h1 { font-size: 2rem; color: var(--brand-navy); margin-bottom: 10px; font-weight: 700; }

/* INPUT GROUPS */
.input-group { margin-bottom: 22px; position: relative; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--brand-navy); font-size: 0.9rem; }

/* Standard Input styling */
.ui-inputfield {
    width: 100% !important;
    padding: 14px 15px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e1e8ed !important;
    background: var(--input-bg) !important;
    transition: all 0.3s ease !important;
}

.ui-inputfield:focus {
    border-color: var(--brand-yellow) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15) !important;
}

/* --- PASSWORD SPECIFIC FIXES --- */
.ui-password { width: 100% !important; }

/* Ensure space for the toggle eye icon */
.ui-password input { padding-right: 40px !important; }

/* Positioning the built-in PrimeFaces eye icon */
.ui-password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    margin-top: -8px !important;
    color: var(--text-light) !important;
}

.input-icon {
    position: absolute; right: 15px; bottom: 15px;
    color: #b2bec3; font-size: 1.1rem; pointer-events: none;
}

/* BUTTON */
.login-btn {
    width: 100% !important;
    background: var(--brand-yellow) !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 12px !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3) !important;
}

.typing-text { display: inline-block; font-size: 1.2rem; border-right: 2px solid var(--brand-yellow); }

@media (max-width: 768px) {
    .login-left { display: none; }
    .login-right { flex: 1; padding: 20px; }
    .form-card { background: #fff; padding: 30px; border-radius: 20px; box-shadow: var(--shadow-soft); }
}