@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0e17;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.login-bg canvas {
    width: 100%;
    height: 100%;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 45, 61, 0.6);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00e676, #2979ff);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    color: #000;
    margin-bottom: 16px;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.3);
}

.login-brand h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #00e676, #2979ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.login-brand p {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
}

.login-form input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: rgba(15, 25, 35, 0.8);
    border: 1px solid #1e2d3d;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

.login-form input:focus {
    border-color: #00e676;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.login-form input::placeholder { color: #475569; }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    accent-color: #00e676;
    width: 16px;
    height: 16px;
}

.forgot-link {
    font-size: 13px;
    color: #2979ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover { color: #00e676; }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00e676, #00c853);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    box-shadow: 0 0 50px rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}

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

.btn-login::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

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

.login-error {
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.2);
    color: #ff1744;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: #475569;
    font-size: 12px;
}

/* Particles */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-40px) translateX(5px); }
}

/* Grid background */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Moving chart lines */
.chart-line {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 2;
    opacity: 0.06;
}
