/* Science Day CSS Illustration - Premium Minimal Right Side */

/* Base Background - Light & Clean */
body.loginBg {
    background: #f8fafc !important;
    position: relative;
    overflow-x: hidden;
}

/* Watercolor Background Effect - Subtle */
.watercolor-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #ffffff;
    overflow: hidden;
}

.watercolor-splash {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: flow 20s ease-in-out infinite alternate;
}

.splash-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #e0f2fe 0%, transparent 70%);
}

.splash-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #ccfbf1 0%, transparent 70%);
}

.splash-3 {
    top: 30%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #f1f5f9 0%, transparent 60%);
    animation-duration: 30s;
}

@keyframes flow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(15px, -15px) scale(1.02);
    }
}

/* --- FLASK LEFT (Erlenmeyer - Orange) --- */
.flask-container {
    position: fixed;
    left: 10%;
    bottom: 8%;
    width: 200px;
    height: 300px;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

.flask {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 200px;
}

.flask-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 80px;
    border: 2px solid #475569;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.flask-rim {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 6px;
    border: 2px solid #475569;
    border-radius: 4px;
    background: #fff;
    z-index: 3;
}

.flask-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border: 2px solid #475569;
    border-radius: 50% 50% 45% 45%;
    background: rgba(255, 255, 255, 0.2);
    border-top: none;
    z-index: 2;
    overflow: hidden;
}

/* Liquid Orange */
.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, #fcd34d 0%, #fb923c 100%);
    opacity: 0.85;
    border-radius: 0 0 55px 55px;
    animation: slosh 5s ease-in-out infinite;
    transform-origin: 50% 50%;
}

.liquid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: #fcd34d;
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

@keyframes slosh {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

/* Bubbles inside */
.bubble-internal {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rise 4s infinite linear;
}

.b-in-1 {
    width: 6px;
    height: 6px;
    left: 35%;
    bottom: 10%;
    animation-delay: 0s;
}

.b-in-2 {
    width: 8px;
    height: 8px;
    left: 60%;
    bottom: 20%;
    animation-delay: 2s;
}

/* Reflection */
.flask-reflection {
    position: absolute;
    top: 25%;
    left: 15%;
    width: 6px;
    height: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    transform: rotate(15deg);
    z-index: 4;
}

/* Rising Bubbles */
.smoke-bubble {
    position: absolute;
    background: rgba(224, 242, 254, 0.5);
    border: 1px solid rgba(186, 230, 253, 0.4);
    border-radius: 50%;
    bottom: 210px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.s-1 {
    width: 12px;
    height: 12px;
    animation: floatUp 6s infinite 0s;
}

.s-2 {
    width: 18px;
    height: 18px;
    animation: floatUp 7s infinite 2s;
    background: rgba(224, 242, 254, 0.4);
}

.s-3 {
    width: 10px;
    height: 10px;
    animation: floatUp 8s infinite 4s;
}

@keyframes floatUp {
    0% {
        bottom: 210px;
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }

    20% {
        opacity: 0.7;
    }

    100% {
        bottom: 380px;
        opacity: 0;
        transform: translateX(calc(-50% + 20px)) scale(1.2);
    }
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-60px);
        opacity: 0;
    }
}


/* --- FLASK RIGHT (Round Bottom - Blue) - NEW --- */
.flask-container-right {
    position: fixed;
    right: 10%;
    bottom: 8%;
    width: 200px;
    height: 300px;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

.flask-round {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 220px;
}

.flask-neck-long {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 100px;
    /* Longer neck */
    border: 2px solid #475569;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.flask-body-round {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    /* Perfectly round */
    border: 2px solid #475569;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 2;
    overflow: hidden;
}

/* Liquid Blue */
.liquid-blue {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    opacity: 0.85;
    border-radius: 0 0 70px 70px;
    /* Matches flask radius */
    animation: slosh 6s ease-in-out infinite reverse;
    /* Reverse slosh */
    transform-origin: 50% 50%;
}

.liquid-blue::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: #38bdf8;
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}


/* --- STRUCTURED MOLECULE (Top Right - Minimal) --- */
.molecular-pattern {
    position: fixed;
    top: 5%;
    right: 5%;
    width: 300px;
    height: 300px;
    z-index: 0;
    opacity: 0.15;
}

.mol-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #64748b;
    border-radius: 50%;
    z-index: 2;
}

.mol-link {
    position: absolute;
    height: 1px;
    background: #64748b;
    z-index: 1;
    transform-origin: 0 50%;
}

/* Structured placement */
.mn-1 {
    top: 30px;
    left: 120px;
}

.mn-2 {
    top: 90px;
    left: 60px;
}

.mn-3 {
    top: 90px;
    left: 180px;
}

.mn-4 {
    top: 160px;
    left: 20px;
}

.mn-5 {
    top: 160px;
    left: 120px;
}

.mn-6 {
    top: 160px;
    left: 220px;
}

.ml-1 {
    top: 36px;
    left: 126px;
    width: 85px;
    transform: rotate(135deg);
}

.ml-2 {
    top: 36px;
    left: 126px;
    width: 85px;
    transform: rotate(45deg);
}

.ml-3 {
    top: 96px;
    left: 66px;
    width: 75px;
    transform: rotate(120deg);
}

.ml-4 {
    top: 96px;
    left: 66px;
    width: 75px;
    transform: rotate(30deg);
}

.ml-5 {
    top: 96px;
    left: 186px;
    width: 75px;
    transform: rotate(150deg);
}

.ml-6 {
    top: 96px;
    left: 186px;
    width: 75px;
    transform: rotate(45deg);
}


/* --- MAGNET (Left Top) --- */
.magnet-container {
    position: fixed;
    top: 25%;
    left: 5%;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    z-index: 0;
    transform: rotate(45deg);
}

.magnet-u {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 15px solid #f87171;
    border-top: none;
    border-radius: 0 0 30px 30px;
}

.magnet-pole {
    position: absolute;
    top: 0;
    width: 15px;
    height: 15px;
    background: #e2e8f0;
}

.mp-1 {
    left: 0;
}

.mp-2 {
    right: 0;
}


/* --- CONSTELLATION (Top Middle) --- */
.constellation {
    position: fixed;
    top: 5%;
    left: 45%;
    width: 150px;
    height: 100px;
    opacity: 0.15;
    z-index: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 5px #fbbf24;
    animation: twinkle 5s infinite ease-in-out;
}

.st-1 {
    top: 80px;
    left: 20px;
}

.st-2 {
    top: 60px;
    left: 50px;
}

.st-3 {
    top: 50px;
    left: 80px;
}

.st-4 {
    top: 40px;
    left: 110px;
}

.st-5 {
    top: 20px;
    left: 100px;
}

.st-6 {
    top: 10px;
    left: 130px;
}

.st-7 {
    top: 30px;
    left: 140px;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


/* --- PLANETARY ORBIT (Top Left) --- */
.planet-system {
    position: fixed;
    top: 8%;
    left: 8%;
    width: 120px;
    height: 120px;
    opacity: 0.15;
    z-index: 0;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #fbbf24;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.planet-orbit-line {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed #94a3b8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.po-1 {
    width: 60px;
    height: 60px;
}

.po-2 {
    width: 100px;
    height: 100px;
}

.orbit-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ow-1 {
    width: 60px;
    height: 60px;
    animation: spinOrbit 10s linear infinite;
}

.ow-2 {
    width: 100px;
    height: 100px;
    animation: spinOrbit 15s linear infinite;
}

@keyframes spinOrbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.planet-dot {
    position: absolute;
    top: 0;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pd-1 {
    width: 6px;
    height: 6px;
    background: #38bdf8;
}

.pd-2 {
    width: 8px;
    height: 8px;
    background: #f87171;
}


/* --- FLOATING FORMULAS --- */
.symbol {
    position: fixed;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: #475569;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.sym-1 {
    top: 25%;
    left: 15%;
    font-size: 2.5rem;
}

.sym-2 {
    top: 65%;
    right: 10%;
    font-size: 3rem;
}

.sym-3 {
    bottom: 25%;
    left: 25%;
    font-size: 2rem;
}

.sym-4 {
    top: 15%;
    right: 25%;
    font-size: 1.5rem;
}


/* --- LOGIN FORM GLOW --- */
.login-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(235, 250, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

/* Login Form Adjustments */
/* .loginContainer {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    position: relative;
} */

/* Typography fix */
.loginMsg,
.loginText,
.loginContainer label {
    color: #334155 !important;
}

.login-card h1 {
    color: #1e293b !important;
}

.login-card p {
    color: #64748b !important;
}


/* --- FLOATING SCIENCE TEXT (Subtle Background Labels) --- */
.science-text {
    position: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: #cbd5e1;
    /* Very light slate */
    opacity: 0.15;
    /* Subtle visibility */
    z-index: 0;
    pointer-events: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.st-1 {
    top: 15%;
    left: 20%;
    font-size: 1.2rem;
}

/* Science Connect */
.st-2 {
    bottom: 15%;
    right: 25%;
    font-size: 1.4rem;
}

/* The Innovation Lab */
.st-3 {
    top: 12%;
    right: 30%;
    font-size: 1rem;
    opacity: 0.12;
}

/* Discovery Hub */
.st-4 {
    bottom: 40%;
    left: 8%;
    font-size: 1.1rem;
    transform: rotate(-90deg);
}

/* Science Sphere */
.st-5 {
    top: 40%;
    right: 5%;
    font-size: 1.1rem;
    transform: rotate(90deg);
}

/* Knowledge Lab */
.st-6 {
    bottom: 10%;
    left: 30%;
    font-size: 0.9rem;
}

/* Future Lab */
.st-7 {
    top: 8%;
    left: 40%;
    font-size: 0.9rem;
    letter-spacing: 3px;
}

/* Explore Science */
.st-8 {
    bottom: 25%;
    right: 10%;
    font-size: 1rem;
    text-align: right;
}

/* The Curiosity Lab */
.st-9 {
    top: 25%;
    left: 5%;
    font-size: 1.8rem;
    font-weight: 800;
    opacity: 0.05;
}

/* Learning Through Science */

/* Responsive Hide */
@media (max-width: 1024px) {
    .science-text {
        display: none;
    }
}


/* --- EXTRA SCIENCE ICONS & SHAPES --- */
.science-icon {
    position: fixed;
    color: #94a3b8;
    opacity: 0.1;
    z-index: 0;
    font-size: 1.5rem;
    pointer-events: none;
}

/* DNA Double Helix (CSS Abstract) */
.icon-dna {
    top: 20%;
    right: 15%;
    width: 20px;
    height: 60px;
    border-left: 2px dashed #94a3b8;
    border-right: 2px dashed #94a3b8;
    transform: rotate(30deg);
}

.icon-dna::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #94a3b8;
    box-shadow: 0 10px 0 #94a3b8, 0 20px 0 #94a3b8, 0 30px 0 #94a3b8;
}

/* Simple Atom */
.icon-atom-simple {
    bottom: 30%;
    left: 15%;
    width: 40px;
    height: 40px;
    border: 1px solid #94a3b8;
    border-radius: 50%;
}

.icon-atom-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    transform: rotate(60deg);
}

.icon-atom-simple::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    transform: rotate(-60deg);
}

/* Geometric Shapes */
.geo-shape {
    position: fixed;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    border: 1px solid #cbd5e1;
}

.geo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 60%;
    right: 40%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #cbd5e1;
    background: transparent;
    border-top: none;
    border: none;
    /* Reset border for pure css triangle */
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(203, 213, 225, 0.5);
    top: 15%;
    left: 35%;
    transform: rotate(15deg);
}

.geo-plus {
    font-size: 3rem;
    font-weight: 100;
    color: #cbd5e1;
    bottom: 10%;
    right: 45%;
}


/* --- NEW ACADEMIC ELEMENTS --- */
/* Petri Dish */
.icon-petri {
    position: fixed;
    bottom: 20%;
    left: 45%;
    width: 60px;
    height: 60px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    opacity: 0.1;
    transform: rotate(15deg);
    z-index: 0;
}

.petri-dot {
    position: absolute;
    background: #cbd5e1;
    border-radius: 50%;
}

.pd-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 30%;
}

.pd-2 {
    width: 12px;
    height: 12px;
    top: 50%;
    left: 60%;
}

.pd-3 {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 30%;
}

/* Thermometer */
.icon-thermometer {
    position: fixed;
    top: 30%;
    left: 10%;
    width: 12px;
    height: 70px;
    border: 2px solid #94a3b8;
    border-radius: 10px;
    opacity: 0.12;
    z-index: 0;
}

.thermometer-bulb {
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    background: #cbd5e1;
    border: 2px solid #94a3b8;
    border-radius: 50%;
}

.thermometer-line {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background: #cbd5e1;
    border-radius: 2px;
}

/* Battery Cell */
.icon-battery {
    position: fixed;
    bottom: 35%;
    right: 18%;
    width: 30px;
    height: 50px;
    border: 2px solid #94a3b8;
    border-radius: 4px;
    opacity: 0.1;
    transform: rotate(-10deg);
    z-index: 0;
}

.battery-top {
    position: absolute;
    top: -6px;
    left: 8px;
    width: 10px;
    height: 4px;
    background: #94a3b8;
}

.battery-level {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 22px;
    height: 30px;
    background: #cbd5e1;
    border-radius: 2px;
}

/* Scattered Molecular Nodes */
.molecule-scatter {
    position: fixed;
    z-index: 0;
    opacity: 0.15;
}

.ms-node {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    position: absolute;
}

.ms-link {
    height: 1px;
    background: #64748b;
    position: absolute;
    transform-origin: 0 50%;
}

/* Group 1 - Top Left */
.ms-g1 {
    top: 15%;
    left: 30%;
}

.ms-g1 .n1 {
    top: 0;
    left: 0;
}

.ms-g1 .n2 {
    top: 20px;
    left: 30px;
}

.ms-g1 .l1 {
    top: 4px;
    left: 4px;
    width: 35px;
    transform: rotate(35deg);
}

/* Group 2 - Bottom Right */
.ms-g2 {
    bottom: 15%;
    right: 35%;
}

.ms-g2 .n1 {
    top: 0;
    left: 0;
}

.ms-g2 .n2 {
    top: -25px;
    left: 20px;
}

.ms-g2 .n3 {
    top: 25px;
    left: 20px;
}

.ms-g2 .l1 {
    top: 4px;
    left: 4px;
    width: 30px;
    transform: rotate(-50deg);
}

.ms-g2 .l2 {
    top: 4px;
    left: 4px;
    width: 30px;
    transform: rotate(50deg);
}


/* Responsive Hide */
@media (max-width: 1024px) {

    .science-icon,
    .geo-shape,
    .science-text,
    .molecule-scatter,
    .icon-petri,
    .icon-thermometer,
    .icon-battery {
        display: none;
    }
}

/* Responsive Scaling for Layout */
@media (max-width: 1200px) {
    .molecular-pattern {
        right: 0;
        transform: scale(0.8);
    }

    .flask-container-right {
        right: 5%;
        transform: scale(0.9);
    }
}

@media (max-width: 768px) {

    .flask-container,
    .flask-container-right,
    .molecular-pattern,
    .planet-system,
    .symbol,
    .magnet-container,
    .constellation {
        display: none;
    }
}