:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
}

body {
    background: linear-gradient(-45deg, #6a11cb, #2575fc, #3f5efb, #fc466b);
    background-size: 400% 400%;
    animation: animateGradient 15s ease infinite;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif; /* A more modern font */
}

/* Keyframe animation for the background gradient */
@keyframes animateGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
    animation: fadeInUp 0.8s ease-out; /* Card entry animation */
}

/* Keyframe animation for the card fade-in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card h3 {
    font-weight: 600;
    color: #333;
}

.input-group-text {
    background-color: transparent;
    border-right: 0;
}

.input-group-text i {
    color: #666666;
}

.form-control {
    border-left: 0;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 117, 252, 0.25);
    border-color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.captcha-container {
    margin-bottom: 1rem;
}

.captcha-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.captcha-image {
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
    width: 100%;
    height: auto;
}

.captcha-image:hover {
    opacity: 0.8;
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-image-wrapper {
    flex-shrink: 0;
}

.captcha-input-wrapper {
    flex: 1;
}

@media (max-width: 576px) {
    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-image-wrapper {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

#error-message {
    display: none;
}

