* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

html {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.3;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Grid Pattern */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    opacity: 1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Grid Pattern Overlay */
.grid-pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.15) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 1;
    animation: gridMove 30s linear infinite reverse;
    pointer-events: none;
    opacity: 0.6;
}

/* Crypto Symbols */
.crypto-symbols {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.1;
}

.crypto-symbol {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: #00ff88;
    animation: cryptoFloat 15s linear infinite;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.crypto-symbol:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.crypto-symbol:nth-child(2) { top: 20%; right: 10%; animation-delay: 5s; }
.crypto-symbol:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 10s; }
.crypto-symbol:nth-child(4) { top: 60%; right: 20%; animation-delay: 3s; }
.crypto-symbol:nth-child(5) { bottom: 20%; right: 5%; animation-delay: 8s; }
.crypto-symbol:nth-child(6) { top: 80%; left: 80%; animation-delay: 12s; }

@keyframes cryptoFloat {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    25% { opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.1; }
    75% { opacity: 0.2; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.1; }
}

/* Market Charts */
.market-charts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    opacity: 0.2;
}

.chart-svg {
    position: absolute;
    width: 150px;
    height: 75px;
}

.chart-svg:nth-child(1) { top: 15%; right: 10%; }
.chart-svg:nth-child(2) { bottom: 25%; left: 10%; }
.chart-svg:nth-child(3) { top: 50%; right: 15%; }

.chart-line-1 {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawChart1 8s ease-in-out infinite;
    filter: drop-shadow(0 0 5px #00ff88);
}

.chart-line-2 {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawChart2 10s ease-in-out infinite;
    filter: drop-shadow(0 0 5px #00d4ff);
}

.chart-line-3 {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawChart3 12s ease-in-out infinite;
    filter: drop-shadow(0 0 5px #ff6b6b);
}

@keyframes drawChart1 {
    0%, 20% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    80%, 100% { stroke-dashoffset: -200; }
}

@keyframes drawChart2 {
    0%, 30% { stroke-dashoffset: 200; }
    60% { stroke-dashoffset: 0; }
    90%, 100% { stroke-dashoffset: -200; }
}

@keyframes drawChart3 {
    0%, 25% { stroke-dashoffset: 200; }
    55% { stroke-dashoffset: 0; }
    85%, 100% { stroke-dashoffset: -200; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    padding: 1rem 2rem;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
    100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.8); }
}

.logo-text {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 2rem 2rem;
    position: relative;
    background: transparent;
}

.main-content {
    max-width: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Section */
.login-section {
    position: relative;
    z-index: 50;
}

.login-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    padding: 3rem;
    backdrop-filter: blur(25px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: containerGlow 4s ease-in-out infinite alternate;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes containerGlow {
    0% { 
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.4),
            0 0 50px rgba(0, 255, 136, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.5),
            0 0 80px rgba(0, 255, 136, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.form-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

.login-btn {
    width: 100%;
    padding: 1.3rem;
    background: linear-gradient(45deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 200%;
    border: none;
    border-radius: 18px;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 25px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: buttonPulse 3s ease-in-out infinite;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(0, 212, 255, 0.3);
    background-position: 100% 0;
}

.login-btn:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes buttonPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* Market Stats */
.market-stats {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
    z-index: 60;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
}

.stat-value {
    color: #00ff88;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        backdrop-filter: blur(15px);
    }

    .logo {
        font-size: 22px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .main-content {
        max-width: 95%;
        padding: 0 1rem;
    }

    .container {
        padding: 120px 1rem 2rem;
    }

    .login-container {
        padding: 2.5rem 2rem;
        border-radius: 30px;
        margin: 0 auto;
        max-width: 400px;
        backdrop-filter: blur(30px);
        background: rgba(255, 255, 255, 0.1);
    }

    .login-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .form-input {
        padding: 1.3rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 18px;
    }

    .login-btn {
        padding: 1.4rem;
        font-size: 1.2rem;
        border-radius: 20px;
        margin-top: 2rem;
    }

    .market-stats {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90%;
        z-index: 100;
    }

    .stat-item {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
        backdrop-filter: blur(20px);
        background: rgba(0, 0, 0, 0.4);
    }

    /* Add mobile-specific animations */
    .grid-pattern {
        background-size: 30px 30px;
        animation: gridMove 12s linear infinite;
    }

    .grid-pattern-overlay {
        background-size: 60px 60px;
        animation: gridMove 20s linear infinite reverse;
        opacity: 0.4;
    }

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

    /* Touch-friendly hover effects */
    .form-input:focus {
        transform: translateY(-1px);
    }

    .login-btn:active {
        transform: translateY(0) scale(0.96);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 100px 0.5rem 2rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
        border-radius: 25px;
        max-width: 340px;
        background: rgba(255, 255, 255, 0.12);
    }

    .login-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .form-input {
        padding: 1.2rem 1.3rem;
        font-size: 1rem;
    }

    .login-btn {
        padding: 1.3rem;
        font-size: 1.1rem;
    }

    .market-stats {
        bottom: 0.5rem;
        gap: 0.3rem;
    }

    .stat-item {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    /* Enhanced mobile grid */
    .grid-pattern {
        background-size: 25px 25px;
        opacity: 0.6;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}
