body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 20s infinite ease-in-out;
}

.bg-shape-1 {
    width: 50vw;
    height: 50vw;
    background: linear-gradient(135deg, #9466FF, #42E2B8);
    top: -15vw;
    left: -15vw;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 40vw;
    height: 40vw;
    background: linear-gradient(135deg, #FF5C5C, #FFBE0B);
    bottom: -15vw;
    right: -15vw;
    animation-delay: -5s;
}

.bg-shape-3 {
    width: 30vw;
    height: 30vw;
    background: linear-gradient(135deg, #7237FF, #42E2B8);
    top: 30vh;
    left: 70vw;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5%, 5%) rotate(5deg);
    }
    50% {
        transform: translate(0, 10%) rotate(0deg);
    }
    75% {
        transform: translate(-5%, 5%) rotate(-5deg);
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    z-index: 1;
}

.login-card {
    background-color: rgba(29, 29, 37, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease-out;
}

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

.logo {
    text-align: center;
    margin-bottom: 2rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: var(--text-muted);
    margin: 0;
}

.login-form .form-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pin-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.pin-input {
    width: 3.5rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.pin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(148, 102, 255, 0.25);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(148, 102, 255, 0.4);
}

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

.login-error {
    color: var(--danger-color);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    animation: shake 0.5s;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid var(--danger-color);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}
