/* modern_login.css */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url('../img/login_background.jpg'); /* Corrected Path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5); /* A subtle white overlay to soften the background */
    backdrop-filter: blur(8px); /* Blur effect for modern look */
}

.login-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    z-index: 1;
    text-align: center;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

.login-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d47a1; /* Dark blue for a professional look */
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* Fix for overflow */
}

.input-group input:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 5px rgba(13, 71, 161, 0.2);
    outline: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background-color: #0d47a1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: #0b3a82;
}

.btn-login:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.captcha-container {
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem;
    }
}
