/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #111532);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* Login Container */
.login-container {
    background: #1C1A49;
    backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 18px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 420px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

/* Title */
.login-container h2 {
    margin-bottom: 20px;
    color: yellow;
    font-size: 26px;
    text-shadow: 2px 2px 6px rgba(255, 255, 0, 0.7);
}

/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #a6a6a6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #D9C266;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px #A19E5C;
}

/* Improve Placeholder Readability */
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.9); /* Make it more visible */
    font-weight: 500;
}


/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
    font-size: 20px;
}

/* Login Button */
.login-btn {
    background: #D9C266;
    color: black;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0 2px 4px #A19E5C;
}

.login-btn:hover {
    background: #D9C266;
    transform: scale(1.07);
    box-shadow: 0 px 6px #A19E5C;
}
.login-btn :active{
    box-shadow: none;
    transform: translateY(2px);
}

/* Floating Mascot */
.mascot-container {
    position: absolute;
    top: -80px;
    right: -90px;
    width: 250px;
    animation: floatMascot 3s infinite ease-in-out;
}

.mascot-container img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

#movingFirefly {
    width: 90px;
    animation: fireflyGlow 2s infinite alternate ease-in-out;
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 100, 0.8));
}

/* Animations */
@keyframes fireflyGlow {
    0% { filter: drop-shadow(0px 0px 5px rgba(255, 255, 100, 0.5)); }
    50% { filter: drop-shadow(0px 0px 15px rgba(255, 255, 100, 0.9)); }
    100% { filter: drop-shadow(0px 0px 8px rgba(255, 255, 100, 0.6)); }
}

@keyframes floatMascot {
    0% { transform: translateY(0px); }
    50% { transform: translateY(12px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Link to Sign Up */
.signup-link {
    margin-top: 15px;
    font-size: 14px;
}

.signup-link a {
    color: gold;
    text-decoration: none;
    font-weight: bold;
}

.signup-link a:hover {
    text-decoration: underline;
}
#fireflyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Loading Animation */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#loadingSpinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Firefly Canvas */
.popup{
    width: 400px;
    background-color: #fff;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    padding: 0 30px 30px;
    color: #333;
}
.popup{
    z-index: 2000;
}
.popup img {
    width: 100px;
    height: -100px;
    margin-top:-50px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.popup h2{
    font-size: 38px;
    font-weight: 500;
    margin: 30px 0 10px;
}
.popup button{
    width:100%;
    margin-top: 50px;
    padding: 10px 0;
    background: #6fd649;
    outline: none;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}