:root {
    --primary: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --primary-hover: #5b21b6;
    --accent: #d8b4fe;
    --bg-dark: #090d16;
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Ambient glowing lights in background */
body::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 50%;
    filter: blur(120px);
    top: 15%;
    left: 20%;
    z-index: -1;
    animation: float-slow 15s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 50%;
    filter: blur(150px);
    bottom: 10%;
    right: 15%;
    z-index: -1;
    animation: float-slow 20s ease-in-out infinite alternate-reverse;
}

@keyframes float-slow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

/* Particles canvas overlay */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

/* Glassmorphism Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4),
                0 0 50px -10px rgba(124, 58, 237, 0.1);
    z-index: 10;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header img {
    width: 84px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(124, 58, 237, 0.3));
    transition: transform 0.5s ease;
}

.login-header img:hover {
    transform: scale(1.08) rotate(5deg);
}

.login-header h1 {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-left: 4px;
    letter-spacing: 0.2px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff !important;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2),
                inset 0 0 8px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Captcha Styles */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.captcha-text {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 8px;
    user-select: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.captcha-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    color: #ffffff !important;
    padding: 8px 12px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.captcha-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.btn-login {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 15px;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -5px rgba(124, 58, 237, 0.5);
    filter: brightness(1.1);
}

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

.alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 36px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.login-footer a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}
