/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #141E30, #243B55);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.outer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.middle-container {
    width: 90%;
    max-width: 400px;
}

.inner-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.6s ease-in-out 0.3s forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-box {
    padding: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 0.8s ease-in-out 0.5s forwards;
}

/* Success Animation */
.success-animation {
    animation: successFade 0.8s ease-in-out forwards;
    position: relative;
}

@keyframes successFade {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.2);
    }
}

.success-message {
    font-size: 18px;
    font-weight: bold;
    color: #00ff00;
    opacity: 0;
    animation: fadeInSuccess 1s ease-in-out forwards 0.5s;
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confetti Animation */
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti {
    position: fixed;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: #ff0;
    opacity: 1;
    animation: confetti-fall 3s ease-out forwards;
}

/* Input Fields */
.input-container {
    margin-bottom: 15px;
    text-align: left;
    position: relative;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.5s ease-in-out 0.7s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 8px rgba(0, 198, 255, 0);
}

.input-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0px 0px 12px rgba(0, 198, 255, 0.7);
    transition: all 0.3s ease-in-out;
}



/* Buttons */
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease-in-out 1s forwards;
}

.login-btn.success {
    background: #00ff00;
    color: white;
    animation: successFade 0.8s ease-in-out forwards;
}


.login-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid white;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}



/* Fullscreen Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to right, #141E30, #243B55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Flowing Wave Animation */
.wave-container {
    display: flex;
    gap: 10px;
}

.wave {
    width: 10px;
    height: 40px;
    background: #00c6ff;
    border-radius: 5px;
    animation: waveFlow 1.2s infinite ease-in-out;
}

.wave:nth-child(1) { animation-delay: 0s; }
.wave:nth-child(2) { animation-delay: 0.2s; }
.wave:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveFlow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}

/* Loading Text */
.loading-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-top: 15px;
    animation: fadeIn 1s infinite alternate;
}

/* Confetti Animation */
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti {
    position: fixed;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: #ff0;
    opacity: 1;
    animation: confetti-fall 3s ease-out forwards;
}












@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}




/* Responsive Design */
@media (max-width: 768px) {
    .middle-container {
        width: 95%;
    }
}


#countdown {
    font-size: 22px;
    font-weight: bold;
    color: #ffcc00; /* Yellow color for visibility */
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(1.2);
        opacity: 0.8;
    }
}




