/* login.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Dark Blue to Green Gradient */
    background: linear-gradient(135deg, #001e4d 0%, #001e4d 50%, #8dbf43 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
}

.lang-select {
    position: absolute;
    top: 40%;
    margin-bottom: 340px;
    margin-left: 180px;
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

    .lang-select option {
        color: black; /* Ensure dropdown text is readable */
    }

.login-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    width: 320px;
    text-align: center;
}

.logo {
    margin-bottom: 30px;
    max-width: 200px;
    /* Inverts the white logo to dark for the white card background */
    filter: invert(1) brightness(0.2);
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #e6e6e6; /* Light gray input background */
    box-sizing: border-box;
    font-size: 14px;
}

    input::placeholder {
        color: #777;
    }

button {
    width: 100%;
    padding: 12px;
    background: #2d6098; /* Muted Blue */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    font-size: 15px;
    transition: background 0.3s;
}

    button:hover {
        background: #1e4570;
    }

    button:disabled {
        background: #6c8aa5;
        cursor: not-allowed;
    }

.footer-link {
    display: block;
    margin-top: 15px;
    color: #2d6098;
    text-decoration: none;
    font-size: 13px;
}

.copyright {
    margin-top: 20px;
    color: white;
    font-size: 11px;
    opacity: 0.8;
}

.error {
    color: #ff4444;
    margin-top: 10px;
    font-size: 13px;
    display: none;
}

/* --- LOADING OVERLAY --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 77, 0.9); /* Dark Blue transparency */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #8dbf43; /* Green Brand Color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}