* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    min-height: -webkit-fill-available; /* iOS fix */
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../Background/background.png') no-repeat center center/cover;
    background-attachment: fixed; /* Stabilkan background */
    padding: 20px;
    position: relative;
    overflow-x: hidden; /* Hanya horizontal */
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent; /* Hilangkan highlight tap di mobile */
}

/* ===== AESTHETIC ENHANCEMENTS ===== */

/* Layer 1: Animated gradient overlay - DESKTOP ONLY */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 0, 255, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 153, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.13) 0%, transparent 35%),
        radial-gradient(circle at 70% 20%, rgba(255, 107, 0, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 30% 80%, rgba(67, 233, 123, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 90% 40%, rgba(255, 215, 0, 0.12) 0%, transparent 35%);
    animation: gradientMega 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    /* Hanya tampil di desktop */
    display: none;
}

@keyframes gradientMega {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translate(5%, -5%) scale(1.1) rotate(90deg);
        opacity: 0.85;
    }
    50% {
        transform: translate(-5%, 5%) scale(0.95) rotate(180deg);
        opacity: 0.95;
    }
    75% {
        transform: translate(5%, 5%) scale(1.05) rotate(270deg);
        opacity: 0.9;
    }
}

/* Layer 2: Floating grid pattern - DESKTOP ONLY */
body::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(138, 0, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 0, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.06) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 0, 153, 0.04) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 60px 60px, 40px 40px;
    background-position: 0 0, 0 0, 0 0, 30px 30px;
    animation: gridFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    /* Hanya tampil di desktop */
    display: none;
}

@keyframes gridFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translate(80px, 80px) rotate(10deg);
        opacity: 0.9;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    /* Optimasi GPU */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Floating particles - HAPUS di mobile */
.container::before,
.container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    /* Hanya tampil di desktop */
    display: none;
}

.container::before {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(138, 0, 255, 0.2), rgba(255, 0, 153, 0.1) 50%, transparent 70%);
    top: -60px;
    right: 8%;
    animation: floatParticle1 10s ease-in-out infinite;
    filter: blur(35px);
}

.container::after {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15), rgba(67, 233, 123, 0.12) 50%, transparent 70%);
    bottom: -90px;
    left: 12%;
    animation: floatParticle2 13s ease-in-out infinite;
    filter: blur(45px);
}

@keyframes floatParticle1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: translate(35px, -45px) scale(1.25);
        opacity: 0.9;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.8;
    }
}

@keyframes floatParticle2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translate(-45px, 35px) scale(1.35) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translate(25px, -25px) scale(0.95) rotate(240deg);
        opacity: 0.75;
    }
}

/* Left section enhancements */
.left {
    position: relative;
    flex: 1;
    min-width: 300px;
}

/* Animated glow behind text - HAPUS di mobile */
.left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(ellipse at center, rgba(138, 0, 255, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at center, rgba(255, 0, 153, 0.2) 0%, transparent 65%),
        radial-gradient(ellipse at center, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    animation: glowPulse 3.5s ease-in-out infinite;
    pointer-events: none;
    filter: blur(50px);
    z-index: -1;
    /* Hanya tampil di desktop */
    display: none;
}

/* Multiple decorative shapes around text - HAPUS di mobile */
.left::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -40px;
    right: -60px;
    animation: morphShape 7s ease-in-out infinite;
    pointer-events: none;
    box-shadow: 
        0 0 30px rgba(138, 0, 255, 0.3),
        inset 0 0 20px rgba(255, 0, 153, 0.2);
    /* Hanya tampil di desktop */
    display: none;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% {
        border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
        transform: rotate(120deg) scale(1.1);
        opacity: 0.8;
    }
    66% {
        border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
        transform: rotate(240deg) scale(0.95);
        opacity: 0.7;
    }
}

.left h1 {
    color: white;
    font-size: 68px;
    font-weight: 700;
    text-shadow: 
        2px 2px 12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(138, 0, 255, 0.3),
        0 0 60px rgba(255, 0, 153, 0.2);
    line-height: 1.1;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 200, 255, 1) 30%,
        rgba(255, 255, 255, 1) 50%, 
        rgba(200, 200, 255, 1) 70%,
        rgba(255, 255, 255, 1) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmerRainbow 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes shimmerRainbow {
    0%, 100% { 
        background-position: 0% 0; 
    }
    50% { 
        background-position: 100% 0; 
    }
}

.right { 
    flex-shrink: 0;
    position: relative;
    flex: 1;
    min-width: 350px;
    max-width: 420px;
}

/* Multiple decorative circles around form - HAPUS di mobile */
.right::before,
.right::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    /* Hanya tampil di desktop */
    display: none;
}

.right::before {
    width: 280px;
    height: 280px;
    border: 3px solid rgba(138, 0, 255, 0.2);
    border-style: dashed;
    top: -50px;
    left: -50px;
    animation: rotateCircle1 18s linear infinite;
    box-shadow: 0 0 40px rgba(138, 0, 255, 0.2);
}

.right::after {
    width: 320px;
    height: 320px;
    border: 2px solid rgba(255, 0, 153, 0.15);
    bottom: -60px;
    right: -60px;
    animation: rotateCircle2 22s linear infinite reverse;
    box-shadow: 0 0 35px rgba(255, 0, 153, 0.15);
}

@keyframes rotateCircle1 {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
        border-color: rgba(138, 0, 255, 0.2);
    }
    50% {
        transform: rotate(180deg) scale(1.08);
        opacity: 0.9;
        border-color: rgba(255, 0, 153, 0.25);
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.6;
        border-color: rgba(138, 0, 255, 0.2);
    }
}

@keyframes rotateCircle2 {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
        border-color: rgba(255, 0, 153, 0.15);
    }
    50% {
        transform: rotate(180deg) scale(1.06);
        opacity: 0.8;
        border-color: rgba(0, 242, 254, 0.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
        border-color: rgba(255, 0, 153, 0.15);
    }
}

/* GLASSMORPHISM TANPA backdrop-filter → 100% NO WARNING! */
.login-box {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 40px 35px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 60px rgba(138, 0, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: breathe 5s ease-in-out infinite;
    /* Optimasi untuk mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes breathe {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.37),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 60px rgba(138, 0, 255, 0.15);
        transform: translateY(0);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 80px rgba(255, 0, 153, 0.2);
        transform: translateY(-4px);
    }
}

.login-box::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: url('../Background/background.png') center/cover;
    filter: blur(12px);
    z-index: -1;
}

/* Glass morphism border effect - SIMPLIFIKASI di mobile */
.login-box::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(138, 0, 255, 0.3), 
        rgba(255, 0, 153, 0.2),
        rgba(0, 242, 254, 0.2),
        rgba(255, 255, 255, 0.1));
    background-size: 300% 300%;
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 5s ease-in-out infinite;
}

.login-box:hover::after {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.logo-img {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 25px;
    animation: logoPulse 3.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(138, 0, 255, 0.4)) 
            drop-shadow(0 0 20px rgba(255, 0, 153, 0.3));
    transition: all 0.3s ease;
    /* Optimasi untuk mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 4px 12px rgba(138, 0, 255, 0.4)) 
                drop-shadow(0 0 20px rgba(255, 0, 153, 0.3));
    }
    50% { 
        transform: scale(1.08) rotate(2deg); 
        filter: drop-shadow(0 6px 16px rgba(138, 0, 255, 0.5)) 
                drop-shadow(0 0 30px rgba(255, 0, 153, 0.4));
    }
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(138, 0, 255, 0.6)) 
            drop-shadow(0 0 40px rgba(255, 0, 153, 0.5));
}

.login-box input {
    width: 100%;
    margin: 14px 0;
    padding: 14px 18px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 0 0 rgba(138, 0, 255, 0);
    position: relative;
    /* Fix untuk iOS */
    -webkit-appearance: none;
    appearance: none;
}

.login-box input::placeholder { 
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.login-box input:focus {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 3px rgba(138, 0, 255, 0.2),
        0 0 20px rgba(138, 0, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: inputGlow 2s ease-in-out infinite;
}

@keyframes inputGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 3px rgba(138, 0, 255, 0.2),
            0 0 20px rgba(138, 0, 255, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.15),
            inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 0 3px rgba(255, 0, 153, 0.25),
            0 0 30px rgba(255, 0, 153, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.15),
            inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

.login-box input:focus::placeholder {
    transform: translateX(10px);
    opacity: 0.5;
}

.password-wrapper {
    position: relative;
    margin: 14px 0;
}

.password-wrapper input { 
    padding-right: 50px; 
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: transform 0.2s ease;
}

.toggle-password:hover {
    transform: translateY(-50%) scale(1.1);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8a00ff, #ff0099, #00d4ff);
    background-size: 300% 100%;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(138, 0, 255, 0.4),
        0 0 30px rgba(138, 0, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite;
    /* Fix untuk mobile */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(138, 0, 255, 0.4),
            0 0 30px rgba(138, 0, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 20px rgba(255, 0, 153, 0.5),
            0 0 40px rgba(255, 0, 153, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.login-box button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(138, 0, 255, 0.6),
        0 0 50px rgba(255, 0, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-position: 100% 0;
}

.login-box button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Ripple effect on button */
.login-box button .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading state animation */
.login-box button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.login-box button:disabled::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    margin-left: 8px;
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(-3px);
    }
}

.notification {
    padding: 14px 20px;
    border-radius: 15px;
    margin: 18px 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ffcccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideInDown 0.5s ease, shake 0.5s ease 0.5s;
}

@keyframes slideInDown {
    from { 
        transform: translateY(-30px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes slideOutUp {
    to { 
        transform: translateY(-30px); 
        opacity: 0; 
    }
}

/* ==================== */
/* RESPONSIVE - MOBILE FIX */
/* ==================== */

/* Tablet & Small Desktop */
@media (max-width: 992px) { 
    .left h1 { 
        font-size: 52px; 
    } 
}

/* Mobile Devices - FIX UTAMA */
@media (max-width: 768px) {
    /* Reset body untuk mobile */
    body {
        height: auto;
        min-height: 100vh;
        padding: 15px;
        overflow-y: auto; /* Izinkan scroll vertikal */
        overflow-x: hidden; /* Blokir scroll horizontal */
        display: block; /* Ubah dari flex */
        background-attachment: scroll; /* Nonaktifkan fixed background */
    }
    
    /* Reset container untuk mobile */
    .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 20px 0;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Atur urutan elemen */
    .left { 
        order: 2; 
        width: 100%;
        padding: 0 15px;
    }
    
    .right { 
        order: 1; 
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Simplify heading untuk mobile */
    .left h1 { 
        font-size: 42px;
        line-height: 1.2;
        margin-bottom: 20px;
        /* Simplify animation untuk mobile */
        animation-duration: 8s;
        text-shadow: 
            1px 1px 8px rgba(0, 0, 0, 0.4),
            0 0 25px rgba(138, 0, 255, 0.2);
    }
    
    /* Aktifkan SEMUA animasi yang di-disabled di atas */
    /* TAPI dengan versi yang lebih ringan */
    body::before,
    body::after,
    .container::before,
    .container::after,
    .left::before,
    .left::after,
    .right::before,
    .right::after {
        display: block !important;
        opacity: 0.3 !important; /* Transparan */
        animation: none !important; /* Nonaktifkan animasi */
    }
    
    /* Simplify gradient overlay untuk mobile */
    body::before {
        width: 150% !important;
        height: 150% !important;
        top: -25% !important;
        left: -25% !important;
        background: 
            radial-gradient(circle at center, rgba(138, 0, 255, 0.1) 0%, transparent 60%) !important;
        filter: blur(20px) !important;
    }
    
    /* Nonaktifkan grid pattern di mobile */
    body::after {
        opacity: 0.1 !important;
        background-size: 120px 120px !important;
    }
    
    /* Simplify login box untuk mobile */
    .login-box {
        padding: 35px 25px;
        margin: 0 auto;
        max-width: 380px;
        width: 100%;
        /* Simplify animation untuk mobile */
        animation: breatheMobile 4s ease-in-out infinite;
        box-shadow: 
            0 6px 25px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 40px rgba(138, 0, 255, 0.1);
    }
    
    @keyframes breatheMobile {
        0%, 100% {
            transform: translateY(0);
            box-shadow: 
                0 6px 25px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }
        50% {
            transform: translateY(-2px);
            box-shadow: 
                0 8px 30px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
    }
    
    /* Simplify logo untuk mobile */
    .logo-img {
        width: 150px;
        margin-bottom: 20px;
        /* Simplify animation untuk mobile */
        animation: logoPulseMobile 4s ease-in-out infinite;
        filter: drop-shadow(0 3px 10px rgba(138, 0, 255, 0.3));
    }
    
    @keyframes logoPulseMobile {
        0%, 100% { 
            transform: scale(1); 
        }
        50% { 
            transform: scale(1.05); 
        }
    }
    
    /* Simplify button animation untuk mobile */
    .login-box button {
        animation: buttonPulseMobile 4s ease-in-out infinite;
    }
    
    @keyframes buttonPulseMobile {
        0%, 100% {
            box-shadow: 
                0 4px 15px rgba(138, 0, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        50% {
            box-shadow: 
                0 5px 18px rgba(255, 0, 153, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }
    }
    
    /* Simplify input focus animation untuk mobile */
    .login-box input:focus {
        animation: none;
        box-shadow: 
            0 0 0 2px rgba(138, 0, 255, 0.25),
            0 4px 10px rgba(0, 0, 0, 0.1),
            inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Reduce decorative elements size untuk mobile */
    .right::before {
        width: 180px !important;
        height: 180px !important;
        top: -30px !important;
        left: -30px !important;
        opacity: 0.2 !important;
    }
    
    .right::after {
        width: 200px !important;
        height: 200px !important;
        bottom: -40px !important;
        right: -40px !important;
        opacity: 0.15 !important;
    }
    
    /* Hide heavy particles di mobile */
    .container::before,
    .container::after {
        display: none !important;
    }
    
    /* Simplify left section decorative elements */
    .left::before {
        filter: blur(25px) !important;
        opacity: 0.4 !important;
    }
    
    .left::after {
        width: 80px !important;
        height: 80px !important;
        top: -20px !important;
        right: -30px !important;
        opacity: 0.3 !important;
    }
    
    /* Fix untuk viewport iOS */
    @supports (-webkit-touch-callout: none) {
        body {
            min-height: -webkit-fill-available;
        }
        
        .login-box input {
            font-size: 16px; /* Cegah zoom otomatis di iOS */
        }
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .left h1 { 
        font-size: 36px; 
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .login-box { 
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .logo-img { 
        width: 130px;
        margin-bottom: 15px;
    }
    
    .login-box input {
        padding: 12px 16px;
        font-size: 15px;
        margin: 12px 0;
    }
    
    .login-box button {
        padding: 12px;
        font-size: 15px;
        margin-top: 15px;
    }
    
    /* Nonaktifkan SEMUA efek dekoratif di small mobile */
    body::before,
    body::after,
    .left::before,
    .left::after,
    .right::before,
    .right::after {
        display: none !important;
    }
    
    /* Simplify lebih lanjut */
    .left h1 {
        animation: none;
        background: white;
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .login-box {
        animation: none;
        box-shadow: 
            0 5px 20px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .logo-img {
        animation: none;
    }
    
    .login-box button {
        animation: none;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
    .left h1 { 
        font-size: 32px; 
    }
    
    .login-box { 
        padding: 25px 18px;
    }
    
    .logo-img { 
        width: 110px;
    }
}

/* Desktop - Aktifkan semua efek */
@media (min-width: 769px) {
    /* Aktifkan semua efek dekoratif di desktop */
    body::before,
    body::after,
    .container::before,
    .container::after,
    .left::before,
    .left::after,
    .right::before,
    .right::after {
        display: block;
    }
}

/* Fix untuk preferensi reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}