:root {
    --primary-color: #ffffff;
    --accent-color: #0ea5e9;
    /* Sky blue for cleaner lab look */
    --accent-hover: #0284c7;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(20, 30, 50, 0.6);
    /* Slightly darker/bluer tint */
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-color: #000;
}

/* Background & Parallax */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    will-change: transform;
}

.bg-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/sugar_industry.png');
    background-size: cover;
    background-position: center;
    animation: slowPan 60s ease-in-out infinite alternate;
}

@keyframes slowPan {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient specifically darkens the right side for the sidebar */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Split Layout */
.split-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2;
}

.showcase-area {
    flex: 1;
    /* Takes up remaining space */
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 60px;
}

.brand-floating {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 20px 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    animation: fadeIn 1s ease-out 0.5s backwards;
    z-index: 10;
}

/* Hotspots */
.hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through if needed, but we need pointer-events for children */
}

.hotspot {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s;
}

.hotspot:hover {
    transform: scale(1.1);
}

.pulsing-circle {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.pulsing-circle::before,
.pulsing-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s linear infinite;
}

.pulsing-circle::after {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* Info Tooltip */
.info-tooltip {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(20, 30, 50, 0.85);
    /* Darker for readability */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--accent-color);
    padding: 24px;
    border-radius: 12px;
    max-width: 320px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.info-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.info-tooltip h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.info-tooltip p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.tooltip-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tooltip-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.brand-floating h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-floating p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Sidebar */
.login-sidebar {
    width: 400px;
    min-width: 320px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Slide in from right */
    animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.glass-panel {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.glass-panel header {
    margin-bottom: 32px;
}

.glass-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.glass-panel p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form Styles (Similar to v1 but refined) */
.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 16px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 3px;
    margin-right: 8px;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    /* Green */
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.system-status {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}