:root {
    /* Premium Blue-Purple Palette */
    --primary-color: #1e1b4b;
    /* Deep Indigo */
    --accent-color: #4f46e5;
    /* Vibrant Indigo */
    --accent-glow: rgba(79, 70, 229, 0.4);
    --secondary-accent: #8b5cf6;
    /* Modern Purple */

    --success-color: #10b981;
    /* Emerald */
    --warning-color: #f59e0b;
    /* Amber */
    --danger-color: #ef4444;
    /* Rose */

    --text-primary: #f8fafc;
    /* White for dark backgrounds */
    --text-secondary: #94a3b8;
    /* Cool Gray */
    --text-slate: #1e293b;
    /* Dark Slate for light modes */

    /* Premium Light SaaS Theme Variables */
    --saas-bg: #f8fafc;
    --saas-card: #ffffff;
    --saas-text: #1e293b;
    --saas-muted: #64748b;
    --saas-border: #e2e8f0;
    --saas-blue: #3b82f6;
    --saas-blue-lt: #60a5fa;
    --saas-blue-dk: #2563eb;
    --saas-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --saas-radius: 12px;
    --saas-gradient: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);

    --bg-dark: #0f172a;
    /* Deep Slate Navy */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    --gradient-premium: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --hero-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);

    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --card-radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

.navbar {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.premium-gradient-text {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.animate-ken-burns {
    animation: kenBurns 20s ease-out infinite alternate;
}

/* Slideshow System */
.slideshow-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slideshow-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(0.45) contrast(1.05);
    animation: slideshowFade 24s infinite;
}

@keyframes slideshowFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 0.9;
    }

    33% {
        opacity: 0.9;
    }

    38% {
        opacity: 0;
        transform: scale(1.15);
    }

    100% {
        opacity: 0;
    }
}

.slideshow-image:nth-child(1) {
    animation-delay: 0s;
}

.slideshow-image:nth-child(2) {
    animation-delay: 8s;
}

.slideshow-image:nth-child(3) {
    animation-delay: 16s;
}

h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: #f1f5f9;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.btn-primary {
    background: var(--hero-gradient);
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
    filter: brightness(1.1);
}

.switch-form {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
}

.switch-form a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    color: var(--accent-hover);
}

/* Global Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    flex: 1;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
/* Modern Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--saas-card);
    z-index: 1100;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px 20px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid var(--saas-border);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--saas-border);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header-logo {
    width: 40px;
    height: 40px;
    background: var(--saas-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.sidebar-header-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--saas-text);
}

.sidebar-close-btn {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--saas-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.sidebar-close-btn:hover {
    background: rgba(0,0,0,0.1);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--saas-text);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
}

.sidebar-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--saas-blue);
    transform: translateX(5px);
}

.sidebar-item.logout {
    margin-top: auto;
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.sidebar-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 1090;
}

.overlay.active {
    display: block;
}

/* Modern Hamburger Menu (in case they have one) */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
    position: fixed;
    top: 40px;
    left: 40px;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Premium Light Theme Menu Toggle */
.menu-toggle {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E2E8F0 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-toggle:hover {
    background: #F1F5F9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-toggle i, 
.menu-toggle svg {
    color: #1E293B !important;
    width: 22px;
    height: 22px;
    transition: transform 0.3s;
}

.menu-toggle:hover i,
.menu-toggle:hover svg {
    transform: scale(1.1);
}

/* ── Main Footer (Light Theme) ── */
.main-footer {
    background: #ffffff;
    padding: 60px 5% 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-logo-wrap {
    margin-bottom: 14px;
}

.footer-logo-img {
    height: 36px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

.main-footer p {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}
/* ── Premium OTP Modal (Global) ── */
.otp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: otpFadeIn 0.4s ease;
}

.otp-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 28px;
    padding: 40px;
    color: #1e293b;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    animation: otpSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes otpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes otpSlideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.otp-icon-container {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.otp-modal-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #1e293b;
}

.otp-modal-card .subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

.otp-timer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 25px;
    font-weight: 600;
}

.otp-timer-text span {
    color: #3b82f6;
}

.otp-inputs-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 35px;
}

.otp-input-field {
    width: 50px;
    height: 60px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
}

.otp-input-field:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.btn-otp-verify {
    width: 100%;
    padding: 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-otp-verify:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.btn-otp-cancel {
    width: 100%;
    padding: 16px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-otp-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}
