/* CSS Variables */
:root {
    --primary: #0f172e;
    --primary-light: #1a1f3a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #111827;
    --light: #f9fafb;
    --border: #333;
    --card-bg: #252525;
    --content-bg: #1a1a1a;
    --spacing: 20px;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.lava-lamp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.lava-lamp .blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-light));
    width: 250px;
    height: 250px;
    filter: blur(60px);
    opacity: 0.7;
    mix-blend-mode: screen;
}

#lava-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


/* Login Container */
.login-container {
    background: var(--content-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 50px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(99, 102, 241, 0.1);
    animation: fadeIn 0.6s ease-in;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.login-container img.logo {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    opacity: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.2));
}


/* Heading */
.login-container h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--light);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Error Message */
.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: #fca5a5;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--light);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder {
    color: #666;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
    background: #2f2f3f;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-group label {
    font-size: 13px;
    color: #a0a0a0;
    cursor: pointer;
    margin: 0;
}

/* Submit Button */
.login-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

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

/* Info Box */
.info-box {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--accent-light);
    border-radius: 6px;
    padding: 15px;
    font-size: 12px;
    color: var(--accent-light);
    line-height: 1.6;
    text-align: center;
}

.info-box strong {
    color: var(--accent-light);
    display: block;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .login-container h1 {
        font-size: 22px;
    }
    
    .login-container img.logo {
        width: 110px;
        margin-bottom: 20px;
    }
}