/**
 * Frankknights Enterprise Login Stylesheet - Pixel Perfect Replication
 */

:root {
    --ent-primary: #0F172A;
    --ent-accent: #C62828;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body.enterprise-login-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: #FFFFFF;
    height: 100vh;
    min-width: 1200px;
    overflow: hidden;
    position: relative;
    color: #0F172A;
}

/* ─── Global Background Elements ─── */
.bg-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: #FFFFFF;
}

.bg-world-map {
    position: absolute;
    top: -10%; right: -5%; width: 70%; height: 120%;
    background: url('../images/bg_world_map.jpg') no-repeat center right;
    background-size: contain;
    mix-blend-mode: multiply;
    opacity: 0.15;
    z-index: 1;
}

.bg-corporate-building {
    position: absolute;
    top: 0; left: 0; width: 45vw; height: 100vh;
    background: url('../images/bg_building.jpg') no-repeat left center;
    background-size: cover;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(to right, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.9) 45%, rgba(255,255,255,1) 60%);
    z-index: 3;
}

/* ─── Main Layout ─── */
.login-split-layout {
    display: flex;
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 10;
}

/* ─── Left Panel (Content) ─── */
.login-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8vh 5% 40px 5%; /* Changed bottom padding to 40px since parent now handles footer spacing */
    position: relative;
}

.left-header {
    width: auto;
    max-width: 650px;
    position: relative;
    z-index: 20;
}

.left-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(to right, #0F172A, #D4AF37, #C62828, #0F172A);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    white-space: nowrap;
}
@keyframes shine {
    to {
        background-position: 300% center;
    }
}

.left-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1E3A8A;
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-badge-icon {
    width: 24px;
    height: 24px;
    color: #2563EB;
}

.trust-badge-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F172A;
}

.trust-badge-text span {
    font-size: 0.7rem;
    color: #64748B;
}

/* ─── Analytics Cards Cluster ─── */
.analytics-layer {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: max(28vw, 380px); /* Keep it to the right of header */
    width: 700px;
    height: 400px;
    z-index: 20;
}

.glass-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
    position: absolute;
    display: flex;
    flex-direction: column;
}

.glass-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
}

.glass-card-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.glass-card-trend {
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up { color: #10B981; }

.chart-container {
    flex: 1;
    width: 100%;
    margin-top: 10px;
    position: relative;
}

.card-employee {
    top: 20px; left: 0; width: 220px; height: 220px;
}
.card-attendance {
    top: 0; left: 200px; width: 230px; height: 110px;
    display: flex; flex-direction: row; align-items: center; justify-content: space-between;
}
.card-payroll {
    top: 0; left: 410px; width: 190px; height: 140px;
}
.card-expenses {
    top: 130px; left: 280px; width: 200px; height: 150px;
}

/* ─── Modules Grid ─── */
.modules-container {
    margin-top: auto;
    padding-bottom: 120px;
    position: relative;
    z-index: 20;
}

.modules-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
}

.modules-grid {
    display: flex;
    gap: 1rem;
}

.module-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.module-icon { width: 24px; height: 24px; }
.module-card span { font-size: 0.7rem; font-weight: 600; color: #0F172A; }

/* ─── Right Panel (Login Form) ─── */
.login-right-panel {
    width: 500px;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 25;
    margin-top: -10vh;
}

.premium-solid-card {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), 0 20px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.premium-solid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 30px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border-color: rgba(212, 175, 55, 1);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.login-brand svg, .login-brand .brand-logo-img {
    width: 220px;
    height: auto;
    margin-bottom: 0;
    margin-left: -80px;
    margin-right: 10px;
}

.brand-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
}
.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-35px);
}
.login-brand-text {
    font-size: 2rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 0.95;
}

.login-brand-subtext {
    font-size: 1.6rem;
    font-weight: 900;
    color: #D4AF37;
    letter-spacing: 0.5px;
    margin: 6px 0 0 0;
    line-height: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-brand-subtext::before,
.login-brand-subtext::after {
    content: ''; height: 1.5px; width: 25px; background-color: #D4AF37;
}

.login-subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, #2563EB 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

/* ─── Form Elements ─── */
.floating-form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.floating-form-group .form-control {
    width: 100%;
    height: 50px;
    padding: 1rem 1rem 1rem 2.75rem;
    font-size: 0.9rem;
    color: #0F172A;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.floating-form-group .form-control:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.pwd-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.checkbox-wrap {
    display: flex; align-items: center; gap: 0.5rem; color: #475569; cursor: pointer;
}

.forgot-link {
    color: #3B82F6; text-decoration: none; font-weight: 600;
}

.btn-golden {
    width: 100%;
    height: 50px;
    background: linear-gradient(to right, #B8860B, #FFD700, #B8860B);
    color: #000000;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-golden:hover {
    background: linear-gradient(to right, #DAA520, #FFE4B5, #DAA520);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}
.systems-operational {
    text-align: center;
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}
.status-dot {
    width: 8px; height: 8px; background: #10B981; border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
}
.divider {
    display: flex; align-items: center; text-align: center;
    color: #94A3B8; font-size: 0.75rem; font-weight: 600; margin-bottom: 1.5rem;
}

.divider::before, .divider::after {
    content: ''; flex: 1; border-bottom: 1px solid #E2E8F0;
}
.divider::before { margin-right: 1em; }
.divider::after { margin-left: 1em; }

.btn-sso {
    width: 100%;
    height: 50px;
    background-color: #FFFFFF;
    color: #0F172A;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    cursor: pointer;
}

.btn-sso svg {
    width: 20px;
    height: 20px;
}

.security-msg {
    text-align: center; margin-top: 1.5rem; font-size: 0.7rem; color: #64748B;
    display: flex; align-items: center; justify-content: center; gap: 0.25rem;
}

.alert-premium {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ─── Footer ─── */
.footer-container {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    z-index: 10;
}

.footer-wave {
    display: block;
    width: 100%;
    height: 30px;
    margin-bottom: -1px;
}

.footer-content {
    background-color: #0F172A;
    padding: 0.5rem 5%;
    color: #FFFFFF;
}

.footer-features {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
}

.feature-item {
    display: flex; align-items: center; gap: 0.75rem;
}

.feature-item svg {
    width: 20px; height: 20px; stroke: #60A5FA; stroke-width: 1.5; fill: none;
}

.feature-item span {
    font-size: 0.75rem; font-weight: 600; color: #D4AF37; max-width: 120px; line-height: 1.2; letter-spacing: 0.3px;
}

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.7rem; color: rgba(255,255,255,0.5);
}

.status-indicator {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.05); padding: 0.4rem 0.75rem; border-radius: 20px;
    color: rgba(255,255,255,0.9); font-size: 0.7rem;
}

.status-dot {
    width: 6px; height: 6px; background-color: #10B981; border-radius: 50%;
}

.footer-actions {
    display: flex; gap: 1.5rem;
}

.footer-action-btn {
    background: none; border: none; color: rgba(255,255,255,0.7);
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; cursor: pointer;
}

/* ─── Dark Mode Overrides ─── */
body.dark-mode {
    background-color: #0F172A;
    color: #F8FAFC;
}
.dark-mode .bg-wrapper { background: #0F172A; }
.dark-mode .bg-overlay {
    background: linear-gradient(to right, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.95) 45%, rgba(15,23,42,1) 60%);
}
.dark-mode .premium-solid-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.dark-mode .login-brand-text { color: #FFFFFF; }
.dark-mode .left-header h1 { color: #FFFFFF; }
.dark-mode .left-header h2 { color: #94A3B8; }
.dark-mode .glass-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.dark-mode .glass-card-title { color: #94A3B8; }
.dark-mode .glass-card-value { color: #FFFFFF; }
.dark-mode .trust-badge-text strong { color: #FFFFFF; }
.dark-mode .module-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
}
.dark-mode .module-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255,255,255,0.2);
}
.dark-mode .module-card span { color: #E2E8F0; }
.dark-mode .floating-form-group .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}
.dark-mode .floating-form-group label { color: #94A3B8; }
.dark-mode .pwd-toggle { color: #94A3B8; }
.dark-mode .form-check-label { color: #cbd5e1; }
.dark-mode .login-subtitle { background: linear-gradient(135deg, #60A5FA 0%, #D4AF37 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ─── Language Dropdown ─── */
.lang-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 120px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 100;
}
.lang-dropdown-menu.show { display: flex; }
.lang-item {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #F8FAFC;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lang-item:hover {
    background: rgba(255,255,255,0.1);
    color: #D4AF37;
}
\n
/* ─── Premium Animated Background ─── */
.premium-bg-mesh {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: orbFloat 20s infinite alternate ease-in-out;
}
.mesh-orb.orb-1 {
    width: 600px; height: 600px;
    background: rgba(30, 58, 138, 0.4);
    top: -100px; left: -100px;
}
.mesh-orb.orb-2 {
    width: 500px; height: 500px;
    background: rgba(212, 175, 55, 0.25);
    bottom: -50px; right: 20%;
    animation-delay: -5s;
    animation-duration: 25s;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.1); }
}
.premium-bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    background-image: radial-gradient(rgba(15, 23, 42, 0.1) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}
body.dark-mode .premium-bg-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
}
body.dark-mode .mesh-orb.orb-1 { background: rgba(30, 58, 138, 0.25); }
body.dark-mode .mesh-orb.orb-2 { background: rgba(212, 175, 55, 0.15); }
\n
/* ─── ENTRANCE ANIMATIONS (CASCADE FADE-IN) ─── */
@keyframes fadeInUpCascade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.left-header { animation: fadeInUpCascade 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes fadeInUpCascadeAnalytics {
    from { opacity: 0; transform: translateY(calc(-50% + 40px)); }
    to { opacity: 1; transform: translateY(-50%); }
}
.analytics-layer { animation: fadeInUpCascadeAnalytics 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }

.modules-container { animation: fadeInUpCascade 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.login-right-panel { animation: fadeInUpCascade 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }

/* ─── 3D HOVER & SHINE EFFECT ─── */
.glass-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
}

/* Shine overlay */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
    z-index: 2;
    pointer-events: none;
}
body.dark-mode .glass-card::after {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.04) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    z-index: 20 !important;
    animation-play-state: paused !important;
}
body.dark-mode .glass-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
}

.glass-card:hover::after {
    left: 200%;
}

/* Module Card Hover */
.module-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
body.dark-mode .module-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
