@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Cairo", sans-serif;
    line-height: 1.5;
}

:root {
    --bg-color: #f0f2f8;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --border-color: #e2e8f0;
    --input-focus: #4f46e5;
    --error-red: #ef4444;
    --success-green: #10b981;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    max-height: 100vh;
    display: flex;
    overflow: hidden;
}

.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* ===== Left Banner ===== */
.banner-side {
    flex: 1.2;
    min-width: 0;
    height: 100vh;
    max-height: 100vh;
    position: relative;
    background: linear-gradient(145deg, #070b16 0%, #110d3e 35%, #1e1354 70%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(20px, 3vh, 38px) clamp(24px, 3vw, 44px);
    color: #ffffff;
    overflow: hidden;
}

.banner-side::-webkit-scrollbar {
    width: 4px;
}
.banner-side::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.banner-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(79,70,229,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99,102,241,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(139,92,246,0.18) 0%, transparent 60%);
    z-index: 0;
}

.banner-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0%   { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.banner-image-overlay {
    position: absolute;
    inset: 0;
    background: url("/images/pms_building_banner.png") no-repeat center center;
    background-size: cover;
    opacity: 0.12;
    z-index: 0;
    mix-blend-mode: luminosity;
}

.banner-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: orbFloat 8s ease-in-out infinite;
}
.banner-orb-1 { width: 320px; height: 320px; background: rgba(99,102,241,0.28); top: -60px; right: -60px; animation-delay: 0s; }
.banner-orb-2 { width: 220px; height: 220px; background: rgba(139,92,246,0.22); top: 40%; left: 5%; animation-delay: -3s; }
.banner-orb-3 { width: 260px; height: 260px; background: rgba(59,130,246,0.18); bottom: 10%; right: 10%; animation-delay: -6s; }

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-18px) scale(1.04); }
}

/* Top Bar inside Left Banner */
.banner-top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(4px, 0.8vh, 10px);
}

.banner-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px 18px;
    border-radius: 14px;
    white-space: nowrap;
}

[dir="rtl"] .banner-brand-chip {
    direction: rtl !important;
}

[dir="ltr"] .banner-brand-chip {
    direction: ltr !important;
}

.brand-chip-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    flex-shrink: 0;
}

.brand-chip-text {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

#chipTitleText {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.4px;
    white-space: nowrap;
    line-height: 1;
}

.banner-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.2px;
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.35); }
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin-top: 0;
    margin-bottom: clamp(10px, 1.5vh, 18px);
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    width: fit-content;
}

.banner-title {
    font-size: clamp(22px, 2.8vh, 32px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: clamp(6px, 1vh, 12px);
    letter-spacing: -0.6px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-desc {
    font-size: clamp(11.5px, 1.35vh, 13.5px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: clamp(22px, 3.2vh, 38px);
    max-width: 540px;
}

/* Feature Grid Cards */
.banner-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1.1vh, 12px);
    margin-top: 80px;
    margin-bottom: clamp(10px, 1.5vh, 18px);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: clamp(8px, 1.1vh, 12px) clamp(10px, 1vw, 14px);
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 1vw, 12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: clamp(32px, 3.8vh, 38px);
    height: clamp(32px, 3.8vh, 38px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: clamp(13px, 1.5vh, 15px);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.feature-icon i {
    color: #ffffff !important;
}

/* Solid, clear, vibrant colors for each feature icon */
.feature-icon-1 {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    border: 1px solid rgba(165, 180, 252, 0.4) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.45) !important;
}

.feature-icon-2 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid rgba(110, 231, 183, 0.4) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45) !important;
}

.feature-icon-3 {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
    border: 1px solid rgba(103, 232, 249, 0.4) !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.45) !important;
}

.feature-icon-4 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid rgba(253, 230, 138, 0.4) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45) !important;
}

.feature-icon-5 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border: 1px solid rgba(221, 214, 254, 0.4) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.45) !important;
}

.feature-icon-6 {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border: 1px solid rgba(254, 205, 211, 0.4) !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.45) !important;
}

.feature-info h5 {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.3;
}

.feature-info p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.35;
    margin: 0;
}

/* Live Ticker Card */
.banner-live-ticker {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(30, 27, 75, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 10px 16px;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a5b4fc;
    margin-bottom: 4px;
}

.ticker-pulse-icon {
    color: #60a5fa;
    font-size: 11px;
}

.ticker-body {
    font-size: 12px;
    color: #f1f5f9;
    font-weight: 500;
    line-height: 1.4;
}

.text-emerald { color: #34d399 !important; }
.text-indigo { color: #818cf8 !important; }
.text-cyan { color: #38bdf8 !important; }
.text-amber { color: #fbbf24 !important; }
.text-purple { color: #c084fc !important; }
.text-rose { color: #fb7185 !important; }

/* Banner System Guarantees Footer */
.banner-system-guarantees {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 0.8vh, 10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: clamp(10px, 1.4vh, 16px);
    margin-top: clamp(4px, 0.8vh, 8px);
}

.guarantee-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: clamp(5px, 0.8vh, 7px) clamp(10px, 1vw, 14px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(10.5px, 1.3vh, 11.5px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
    flex: 1 1 auto;
    justify-content: center;
}

.guarantee-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

/* ===== Right Form Side ===== */
.form-side {
    flex: 1;
    min-width: 0;
    height: 100vh;
    max-height: 100vh;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(20px, 4vh, 50px) clamp(20px, 3vw, 48px);
    position: relative;
    overflow: hidden;
}

.form-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 10%, rgba(79,70,229,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 90%, rgba(99,102,241,0.04) 0%, transparent 55%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ===== Language Toggle ===== */
.top-nav {
    position: absolute;
    top: clamp(16px, 2.5vh, 28px);
    right: clamp(20px, 2.5vw, 36px);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 10;
}

[dir="rtl"] .top-nav { right: auto; left: 36px; }

.lang-selector-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.lang-selector-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(79,70,229,0.12);
}

/* ===== Brand Logo ===== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    margin-top: 25px;
}

[dir="rtl"] .brand-logo {
    direction: rtl !important;
}

[dir="ltr"] .brand-logo {
    direction: ltr !important;
}

.logo-icon { display: flex; align-items: flex-end; gap: 5px; height: 20px; }

.logo-bar { width: 7px; background-color: var(--accent-color); border-radius: 4px; }
.logo-bar-1 { height: 25px; }
.logo-bar-2 { height: 35px; background-color: #3b82f6; }
.logo-bar-3 { height: 29px; background-color: #10b981; }

.brand-name { font-family: "Outfit", "Inter", system-ui, sans-serif !important; font-size: 27px; font-weight: 700; letter-spacing: 0.5px; display: flex; align-items: center; white-space: nowrap; }
.brand-highlight { color: var(--text-primary); font-weight: 800; }
.brand-sub { color: var(--accent-color); font-weight: 600; margin-inline-start: 6px; }

/* ===== Form Header ===== */
.form-header { margin-bottom: 32px; }

.form-title {
    font-size: 27px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.form-subtitle { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== White Card around inputs ===== */
.form-fields-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

/* ===== Form Controls ===== */
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 7px; }
.form-group:last-child { margin-bottom: 0; }

.input-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

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

.form-input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

[dir="rtl"] .form-input { padding: 13px 46px 13px 16px; }

.form-input::placeholder { color: var(--text-muted); font-size: 13px; }

.form-input:focus {
    border-color: var(--accent-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.08);
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

[dir="rtl"] .input-icon { left: auto; right: 15px; }

.input-wrapper:focus-within .input-icon { color: var(--accent-color); }

.password-toggle {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s ease;
}

[dir="rtl"] .password-toggle { right: auto; left: 14px; }
.password-toggle:hover { color: var(--accent-color); }
.password-input { padding-left: 46px !important; padding-right: 46px !important; }

/* ===== Submit Button ===== */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #6366f1 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.4s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.4);
}

.btn-submit:hover::after { left: 140%; }
.btn-submit:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(79,70,229,0.25); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .banner-side {
        padding: 30px 28px;
    }
    .banner-title {
        font-size: 26px;
    }
    .banner-desc {
        font-size: 12.5px;
    }
    .form-side {
        padding: 40px 24px;
    }
}

@media (max-width: 1024px) {
    .banner-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    .banner-side {
        display: none;
    }
    .form-side {
        flex: 1;
        width: 100%;
        padding: 60px 20px 40px 20px;
    }
    .top-nav {
        top: 20px;
        right: 20px;
    }
    [dir="rtl"] .top-nav {
        left: 20px;
    }
    .login-card {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .form-fields-card {
        padding: 20px;
    }
}

/* ===== Validation Alert ===== */
.inline-alert {
    background: linear-gradient(135deg, #fef2f2, #fff5f5);
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 11px 16px;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInAlert 0.2s ease-out both;
}

.inline-alert.fade-out {
    animation: fadeOutAlert 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

@keyframes fadeOutAlert {
    from { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
    to   { 
        opacity: 0; 
        transform: translateY(-6px) scale(0.97);
    }
}

.alert-content { display: flex; align-items: center; gap: 10px; width: 100%; }
.alert-icon { color: var(--error-red); font-size: 14px; flex-shrink: 0; }
.alert-text { font-size: 13px; font-weight: 500; color: #991b1b; line-height: 1.4; }
