/* Section de fond */
.login-section {
    min-height: calc(100vh - 120px);
    /* enlève navbar + footer */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1c1c1c 0%, #2b2b2b 100%);
}

/* Carte */
.login-card {
    width: 320px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.2rem 2.4rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* épaisseur du contour */
    background: linear-gradient(135deg,
            var(--primary) 0%,
            #ff922e 35%,
            #fffb00 70%);
    mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* Titres & champs */
.login-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
    color: var(--bg-dark);
}

.login-card label {
    display: block;
    margin-bottom: 1rem;
}

.login-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.login-card input {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    transition: border 0.25s;
}

.login-card input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Champ mot de passe + œil */
.password-field {
    position: relative;
}

.toggle-pass {
    position: absolute;
    right: 0.6rem;
    top: 73%;
    translate: 0 -50%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Bouton login */
.btn-login {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.7rem 0;
    border: none;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.25s;
}

.btn-login:hover {
    opacity: 0.9;
}

/* Message d’erreur */
.error-msg {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    text-align: center;
    color: #e10600;
}