/* Reset léger */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.login-container {
    width: 100%;
    padding: 20px;
}

/* Carte */
.login-card {
    max-width: 420px;
    margin: auto;
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* Titre */
.login-card h1 {
    margin: 0 0 24px;
    text-align: center;
    font-weight: 600;
    color: #222;
}

/* Champs */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #444;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}

.field input:focus {
    outline: none;
    border-color: #2c5364;
    box-shadow: 0 0 0 3px rgba(44,83,100,.15);
}

/* Bouton */
button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #2c5364;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .05s;
}

button:hover {
    background: #203a43;
}

button:active {
    transform: translateY(1px);
}

/* Erreur */
.error {
    background: #fdecea;
    color: #b00020;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

.subtle {
    margin: 0 0 18px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.actions {
    margin-top: 14px;
    text-align: center;
}

.linklike {
    background: transparent !important;
    color: #2c5364 !important;
    border: none !important;
    padding: 8px 10px !important;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none !important;
}

.linklike:hover {
    text-decoration: underline;
}

/* Remember-me */
.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.remember-row input[type="checkbox"] {
    width: 16px;     /* empêche le width:100% des inputs .field */
    height: 16px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.remember-row label {
    margin: 0;
    font-size: 14px;
    color: #444;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis
}

/* Texte secondaire du remember-me */
.remember-row label span {
    font-style: italic;
    font-weight: normal; /* enlève le gras hérité */
    font-size: 13px;
    color: #666;
}

/* Sur petits écrans, autoriser le retour à la ligne */
@media (max-width: 420px) {
    .remember-row label {
        white-space: normal;
    }
}
