:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --accent-color: #ff3e81;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050510;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Gradient Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #050510 100%);
    z-index: 2;
    pointer-events: none;
}

/* Glassmorphism Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    text-align: center;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Modern Glowing Effect */
.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, var(--primary-color) 360deg);
    animation: rotate 10s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-card h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card p.subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 35px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    outline: none;
    color: #fff;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    transform: scale(1.02);
}

.btn-login {
    width: 100%;
    padding: 16px;
    margin-top: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(58, 123, 213, 0.5);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(58, 123, 213, 0.6);
    filter: brightness(1.1);
}

.btn-login:active {
    transform: translateY(0);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.modal {
    background: #0a0a1a;
    padding: 40px;
    border-radius: 24px;
    max-width: 480px;
    width: calc(100% - 40px);
    text-align: center;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.1);
    animation: modalIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 800;
}

.modal p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 35px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

#error-msg {
    color: #ff4d4d;
    margin-bottom: 20px;
    font-size: 0.9rem;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    display: none;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Responsiveness */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        border-radius: 0;
        height: 100vh;
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
    }

    body {
        padding: 0;
        background: #050510;
    }

    .login-card h2 {
        font-size: 1.8rem;
    }
}