.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url("../../images/login_image.png") no-repeat center center;
    background-size: cover;
    background-position: center;
    padding: 20px;
    position: relative;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.login-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    font-weight: bold;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    max-width: 100%;
    transition: all 0.3s ease-in-out;
}

.input-wrapper i {
    margin-right: 8px;
    color: var(--secondary-color);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    padding: 8px;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.3);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.error-msg {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px;
        max-width: 90%;
    }
}

.forgot-password {
    margin-top: 20px;
    text-align: center;
}

.forgot-password a {
    font-size: 0.95em;
    color: #3885ce;
    text-decoration: underline;
    transition: color 0.2s;
    opacity: 0.85;
}

.forgot-password a:hover {
    color: #195782;
    opacity: 1;
}

/* Mensajes flash */
#flashed-messages {
    max-width: 400px;
    margin: 30px auto 0 auto;
    z-index: 9999;
}

.flash {
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 7px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.flash-success {
    background: #2ecc70ff;
    color: #fff;
}

.flash-error {
    background: #e74c3c;
    color: #fff;
}

.flash-warning {
    background: #ffc107;
    color: #333;
}
