:root {
    --bg-dark-blue: #5e0a3e;
    --primary-blue: #ea721d;
    --primary-blue-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.35);
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

/* :root {
    --bg-dark-blue: #3d0a0a;
    --primary-blue: #c0392b;
    --primary-blue-hover: #922b21;
    --accent-glow: rgba(112, 26, 29, 0.45);
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
} */


* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark-blue);
    background: radial-gradient(circle at 70% 45%, #5e0a3e 0%, #ea721d 65%, #ea721d 100%);
    background-attachment: fixed;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background-color: #1a0505;
    background: linear-gradient(145deg, #1a0505 0%, #3d0a0a 40%, #2c0808 70%, #1a0505 100%);
    background-attachment: fixed;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
} */

.login-page-wrapper {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1.5rem;
}

/* Floating background decorative glowing icons */
.bg-floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px;
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: floatIcon 6s ease-in-out infinite;
}

.bg-icon-1 { top: 22%; left: 47%; animation-delay: 0s; }
.bg-icon-2 { top: 48%; left: 46%; animation-delay: 1.5s; }
.bg-icon-3 { top: 24%; right: 5%; animation-delay: 3s; }
.bg-icon-4 { top: 58%; right: 4%; animation-delay: 2.2s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* Top Right Badge */
.top-right-badge {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 10;
}

.badge-green-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

/* Main Content Split Container */
.login-content-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1240px;
    width: 100%;
    margin: auto;
    z-index: 2;
}

/* =========================================================
   LEFT SIDE: FLOATING WHITE LOGIN CARD
========================================================= */
.login-card-container {
    flex: 0 0 450px;
    max-width: 450px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35);
    color: var(--text-dark);
    position: relative;
}

.card-logo-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.75rem;
}

.card-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.card-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.1;
}

.card-brand-tagline {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.card-welcome-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.03em;
}

.card-welcome-title .text-primary-blue {
    color: var(--primary-blue);
}

.card-welcome-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: #334155;
}

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

.input-wrapper-icon {
    position: absolute;
    left: 1.1rem;
    color: #94a3b8;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.form-control-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.25s ease;
}

.form-control-input::placeholder {
    color: #94a3b8;
}

.form-control-input:focus {
    border-color: var(--primary-blue);
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-control-input:focus + .input-wrapper-icon,
.input-wrapper:focus-within .input-wrapper-icon {
    color: var(--primary-blue);
}

.password-toggle-icon {
    position: absolute;
    right: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.password-toggle-icon:hover {
    color: var(--primary-blue);
}

/* Captcha Component */
.captcha-box-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 0.4rem 0.75rem;
}

.captcha-box-row:focus-within {
    border-color: var(--primary-blue);
}

.captcha-digit-box {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.captcha-operator {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.captcha-input-field {
    width: 58px;
    height: 38px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.25s ease;
}

.captcha-input-field:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.captcha-input-field.is-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    color: #059669 !important;
}

.captcha-input-field.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.captcha-reload-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #eff6ff;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.captcha-reload-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: rotate(60deg);
}

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

.remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
}

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.98rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 22px -4px rgba(37, 99, 235, 0.4);
}

.login-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1.25rem 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider-with-text span {
    padding: 0 0.75rem;
}

.sso-button-container {
    display: flex;
    justify-content: center;
}

.sso-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
}

.sso-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--primary-blue);
}

.sso-btn i {
    font-size: 1.1rem;
    color: var(--primary-blue);
}

/* =========================================================
   RIGHT SIDE: 3D DARK DASHBOARD SHOWCASE & STATS
========================================================= */
.dashboard-showcase-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-mockup-frame {
    width: 100%;
    max-width: 600px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(37, 99, 235, 0.25);
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    position: relative;
}

.dashboard-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mockup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 3 Dynamic Stat Boxes */
.stats-grid-3,
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stat-box-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: left;
}

.stat-box-title {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.stat-box-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.stat-box-trend {
    font-size: 0.65rem;
    font-weight: 700;
}

.trend-up { color: #34d399; }
.trend-down { color: #f87171; }

/* Dashboard Charts Split */
.charts-grid-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.chart-panel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: left;
}

.panel-header-sm {
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.mockup-line-chart {
    width: 100%;
    height: 80px;
}

.mockup-donut-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    position: relative;
}

.donut-center-text {
    position: absolute;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
}

/* Dashboard Bottom Grid */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.activity-item-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #94a3b8;
    padding: 0.35rem 0;
}

.activity-item-mini i {
    color: #60a5fa;
    font-size: 0.75rem;
}

/* Subtitle & Bottom Feature Pills */
.showcase-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.showcase-subtext {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 1.75rem 0;
    max-width: 500px;
    line-height: 1.6;
}

.showcase-features-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.feature-pill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-pill-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.feature-pill-item:hover .feature-pill-icon {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-3px);
}

.feature-pill-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
}

/* Page Footer */
.page-bottom-footer {
    margin-top: 2rem;
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    z-index: 2;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .login-content-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 960px) {
    .login-content-grid {
        flex-direction: column;
    }

    .login-card-container {
        flex: 1;
        max-width: 460px;
    }

    .dashboard-showcase-container {
        display: none;
    }

    .top-right-badge {
        top: 1.25rem;
        right: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-page-wrapper {
        padding: 1rem;
    }

    .login-card-container {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .card-welcome-title {
        font-size: 1.5rem;
    }

    .top-right-badge {
        display: none;
    }
}