* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    transition: background 0.4s ease, color 0.4s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x:hidden;
}

/* ================= DARK THEME ================= */
body.dark {
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    color:white;
}

/* ================= LIGHT THEME ================= */
body.light {
    background: linear-gradient(135deg,#ffffff,#e8f5e9,#c8e6c9);
    color:#1b5e20;
}

/* Floating Shapes */
.floating-shapes::before,
.floating-shapes::after {
    content:"";
    position:fixed;
    width:200px;
    height:200px;
    background:rgba(0,255,100,0.15);
    border-radius:50% 50% 50% 0;
    animation: float 8s infinite ease-in-out alternate;
}

.floating-shapes::after {
    left:70%;
    top:50%;
    animation-delay:2s;
}

@keyframes float {
    from { transform:translateY(0px) rotate(0deg); }
    to { transform:translateY(-40px) rotate(20deg); }
}

/* Header */
header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:30px 60px;
}

.top-controls {
    display:flex;
    gap:30px;
}

/* Cards */
.cards {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    padding:20px 60px;
}

.card {
    padding:25px;
    border-radius:20px;
    backdrop-filter:blur(15px);
    position: relative;
    overflow:hidden;
    transition: 0.4s;
}

/* Dark Theme Glow */
body.dark .card {
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 15px rgba(0,255,100,0.15);
}

/* Light Theme Glow */
body.light .card {
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(76,175,80,0.2);
}

/* Hover Effect */
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 20px rgba(0,255,100,0.4),
                0 0 40px rgba(0,255,100,0.2),
                0 10px 30px rgba(0,0,0,0.3);
}

/* Neon Border Animation */
.card::before {
    content:"";
    position:absolute;
    inset:0;
    border-radius:20px;
    padding:2px;
    background:linear-gradient(45deg,#00ff88,#00c853,#00ffcc);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity:0;
    transition:0.4s;
}

.card:hover::before {
    opacity:1;
}
body.dark .card {
    background:rgba(255,255,255,0.08);
}

body.light .card {
    background:rgba(255,255,255,0.7);
}

/* Charts */
.charts {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    padding:20px 60px;
}

.chart-container {
    padding:20px;
    border-radius:20px;
}

body.dark .chart-container {
    background:rgba(255,255,255,0.08);
}

body.light .chart-container {
    background:rgba(255,255,255,0.8);
}

/* Button */
button {
    padding:15px 40px;
    border-radius:30px;
    border:none;
    cursor:pointer;
    font-weight:600;
}

.pump-off { background:#ff4b5c; color:white; }
.pump-on { background:#00c853; color:white; }

.controls {
    text-align:center;
    margin:30px 0;
}


/* ================= GLOW TOGGLE BUTTONS ================= */

.toggle-container {
    display:flex;
    align-items:center;
    gap:10px;
}

.glow-toggle {
    position: relative;
    width: 70px;
    height: 35px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,255,100,0.3);
    transition: 0.4s;
}

.glow-toggle::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    top: 3.5px;
    left: 4px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88,
                0 0 20px #00ff88,
                0 0 40px #00ff88;
    transition: 0.4s;
}

/* Active State */
.glow-toggle.active {
    background: rgba(0,255,100,0.2);
    box-shadow: 0 0 15px rgba(0,255,100,0.6);
}

.glow-toggle.active::before {
    transform: translateX(35px);
}

/* Light Theme Adaptation */
body.light .glow-toggle {
    background: rgba(0,150,0,0.1);
}

body.light .glow-toggle::before {
    background: #1b5e20;
    box-shadow: 0 0 10px #1b5e20,
                0 0 20px #4caf50;
}

/* ================= ACCESS BUTTON ================= */

.auth-entry {
    text-align:center;
    padding:60px 0;
}

.access-btn {
    padding:18px 50px;
    border-radius:50px;
    border:none;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    background: linear-gradient(45deg,#00ff88,#00c853);
    color:white;
    box-shadow: 0 0 20px rgba(0,255,100,0.5);
    transition:0.4s;
}

.access-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0,255,100,0.8);
}

/* ================= AUTH PAGE ================= */

.auth-wrapper {
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
}

.auth-card {
    width:900px;
    height:550px;
    position:relative;
    overflow:hidden;
    border-radius:20px;
    display:flex;
    background:white;
    box-shadow:0 0 40px rgba(0,255,100,0.3);
    transition:0.6s;
}

.form-side {
    width:50%;
    padding:60px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:20px;
}

.form-side h2 {
    color:#1b5e20;
}

.form-side input {
    padding:12px;
    border-radius:10px;
    border:1px solid #ddd;
}

.form-btn {
    padding:12px;
    border:none;
    border-radius:20px;
    background:linear-gradient(45deg,#00ff88,#00c853);
    color:white;
    cursor:pointer;
}

/* ================= GREEN SLIDING OVERLAY ================= */

.overlay {
    position:absolute;
    width:50%;
    height:100%;
    left:50%;
    background:linear-gradient(135deg,#00ff88,#00c853);
    color:white;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    transition:0.6s;
}

.overlay-content {
    width:80%;
}

.overlay button {
    margin-top:20px;
    padding:10px 30px;
    border-radius:20px;
    border:none;
    cursor:pointer;
}

/* ACTIVE STATE (3D EFFECT) */

.auth-card.signup-active .overlay {
    transform:translateX(-100%);
}

.auth-card.signup-active .login-side {
    transform:translateX(100%);
    opacity:0;
}

.auth-card.signup-active .signup-side {
    transform:translateX(-100%);
    opacity:1;
}

.login-side,
.signup-side {
    transition:0.6s;
}


