:root {
    --bg-main: #030712;
    --bg-pane-left: #020617;
    --bg-card-glass: rgba(15, 23, 42, 0.45);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(16, 185, 129, 0.4);
    --primary-green: #10b981;
    --accent-cyan: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-glow: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(6, 180, 212, 0.05) 50%, transparent 100%);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

/* Background Effects */
.bg-grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    pointer-events: none;
    z-index: 1;
}

.glowing-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.blob-green {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.blob-cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Layout */
.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Left Pane (60%) */
.brand-pane {
    flex: 0 0 60%;
    background-color: var(--bg-pane-left);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 4rem;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border-glass);
}

/* Right Pane (40%) */
.form-pane {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem;
    position: relative;
}

/* Custom Slideshow Styles */
.slides-wrapper {
    position: relative;
    height: 480px;
    margin-top: auto;
    margin-bottom: auto;
}

.presentation-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.presentation-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.slide-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary-green);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.presentation-slide.active .slide-tag {
    opacity: 1;
    transform: translateY(0);
}

.brand-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.brand-heading span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.presentation-slide.active .brand-heading {
    opacity: 1;
    transform: translateY(0);
}

.slide-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.presentation-slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Cards inside slides */
.slide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
}

.slide-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
}

.slide-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-active);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.15);
}

.slide-card-icon {
    font-size: 1.25rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
}

.slide-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.presentation-slide.active .slide-card {
    opacity: 1;
    transform: translateY(0);
}

.presentation-slide.active .slide-card:nth-child(1) { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 0.3s ease; }
.presentation-slide.active .slide-card:nth-child(2) { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, transform 0.3s ease; }
.presentation-slide.active .slide-card:nth-child(3) { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, transform 0.3s ease; }
.presentation-slide.active .slide-card:nth-child(4) { transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s, transform 0.3s ease; }

/* SVG Illustration Frame */
.illustration-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    height: 140px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.presentation-slide.active .illustration-frame {
    opacity: 1;
    transform: scale(1);
}

.illustration-svg {
    width: auto;
    height: 100%;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
}

/* Animations for SVG elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

.anim-float {
    animation: float 6s ease-in-out infinite;
}

.anim-pulse {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Slide Indicator dots */
.slide-indicators {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-glass);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    width: 24px;
    border-radius: 3px;
    background: var(--primary-green);
}

/* Login Card styling */
.login-card {
    background: var(--bg-card-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.login-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-active);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 30px 60px -10px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(16, 185, 129, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.production-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 6px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Floating labels enterprise input */
.input-group-premium {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group-premium input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.15rem 1rem 0.65rem 2.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.input-group-premium input:focus {
    border-color: var(--primary-green);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.input-group-premium label {
    position: absolute;
    left: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    pointer-events: none;
    margin: 0;
}

/* Floating behavior */
.input-group-premium input:focus ~ label,
.input-group-premium input:not(:placeholder-shown) ~ label {
    top: 0.6rem;
    transform: translateY(0);
    font-size: 0.725rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* Inputs styling with icon positioning */
.input-group-premium .input-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group-premium input:focus ~ .input-icon-left {
    color: var(--primary-green);
}

/* Password Toggle Icon */
.password-toggle-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

/* Button & Morph Animations */
.btn-premium {
    position: relative;
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.4),
        0 0 20px rgba(6, 182, 212, 0.2);
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-premium .btn-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium:hover .btn-arrow {
    transform: translateX(4px);
}

/* Button ripple container */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Success Morphing State */
.btn-premium.success-state {
    background: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

/* Security specs / labels */
.security-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.spec-item {
    font-size: 0.725rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.spec-item i {
    color: var(--primary-green);
}

/* Footer layout */
.footer-pane {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 3.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 10;
}

.footer-pane a {
    color: var(--text-secondary);
    text-decoration: none;
    pointer-events: auto;
}

.footer-pane a:hover {
    color: var(--primary-green);
}

/* Custom styling for standard bootstrap alertBox inside glass card */
#alertBox {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 12px;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    animation: shake-error 0.4s ease-in-out;
}

@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .brand-pane {
        display: none !important;
    }
    .form-pane {
        flex: 0 0 100%;
        padding: 2rem 1rem;
        min-height: 100vh;
        justify-content: center;
    }
    .login-card {
        padding: 2.5rem 1.75rem;
    }
    .footer-pane {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
        padding: 0 1.5rem;
        bottom: 1.5rem;
    }
}
