body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: url('../img/quel-role-a-joue-notre-ingenieur-qualite-dans-la-construction-du-site-de-production-x.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay sombre pour meilleure lisibilité */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.login-card {
    border: 1px solid rgba(30, 126, 52, 0.4);
    border-radius: 15px;
    max-width: 500px;
    margin: auto;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    color: #fff;
}

.login-card .card-body {
    padding: 2.5rem;
}

.logo-img {
    max-height: 70px;
}

.login-card label {
    color: #fff;
    font-weight: 600;
}

.login-card input {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
}

.login-card input::placeholder {
    color: #eee;
}

.login-card input:focus {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border-color: #1e7e34;
    box-shadow: 0 0 0 0.2rem rgba(30, 126, 52, 0.25);
}

.btn-primary {
    background-color: #1e7e34;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    color: #fff;
}

.btn-primary:hover {
    background-color: #145523;
}

.btn-outline-primary {
    border-color: #1e7e34;
    color: #1e7e34;
}

.btn-outline-primary:hover {
    background-color: #1e7e34;
    color: #fff;
    border-color: #1e7e34;
}

#captchaCode {
    background: rgba(255, 255, 255, 0.7); /* plus opaque */
    color: #1e7e34; 
    padding: 8px 12px;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 16px;
    border-radius: 5px;
    user-select: none;
    text-align: center;
}

a.text-primary {
    color: #1e7e34 !important;
}

a.text-primary:hover {
    color: #145523 !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.text-white {
    position: relative;
    z-index: 1;
}