/* KLKEFACT-339 — Écran de connexion provisoire (maquettes 10395-756 / 10430-107).
   Pages autonomes (sans la chrome de l'app). Fidélité QA : positionnement, couleurs, libellés. */

.auth-page {
    margin: 0;
    background: var(--FBFBFB, #FBFBFB);
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.auth-container {
    max-width: 760px;
    margin: 56px auto;
    padding: 0 20px;
}

/* En-tête : logo + sous-titre centrés */
.auth-header {
    text-align: center;
}

/* Logo KLEKOON en texte (police Dredwerkz) : KLE orange, KOON noir. */
.auth-logo {
    line-height: normal;
}

.auth-logo-kle,
.auth-logo-koon {
    font-family: 'Dredwerkz', Arial, sans-serif;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.auth-logo-kle {
    color: #F70;
}

.auth-logo-koon {
    color: var(--000000, #000);
}

.auth-subtitle {
    width: 321px;
    height: 23px;
    margin: 10px auto 0;
    color: var(--000000, #000);
    text-align: center;
    font-family: Arial;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* Séparateurs horizontaux fins */
/* Traits : même largeur que le bloc label+champ (≈ maquette), centrés sur la page
   (identiques sur les 2 écrans). */
.auth-sep {
    width: 373px;
    max-width: 100%;
    border: 0;
    border-top: 1px solid #e3e3e3;
    /* (6) boutons→séparateur bas = 30px (porté par .auth-actions) ; séparateurs écran 2. */
    margin: 14.5px auto;
}

/* KLKEFACT-341 — séparateur du haut (écran connexion ET liste utilisateurs) : 30px AU-DESSUS
   (titre→barre) ET 30px EN-DESSOUS (barre→1er élément : input Identifiant / titre de la liste). */
.auth-sep-top {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* KLKEFACT-341 — (6) séparateur du bas de l'écran connexion : 30px AU-DESSUS (boutons→barre)
   ET 30px EN-DESSOUS (barre→« Vous n'avez pas de compte ? »). Scopé écran 1. */
.auth-sep-bottom {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* ── Écran 1 : formulaire de connexion ── */
.auth-form {
    width: 373px;
    max-width: 100%;
    margin: 0 auto;
}

.auth-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* KLKEFACT-341 — (2) Identifiant→Mot de passe et (3) Mot de passe→ligne = 20px */
    margin-bottom: 20px;
}

.auth-field > label {
    width: 130px;
    font-weight: 700;
    flex: 0 0 130px;
}

.auth-input {
    width: 219px;
    height: 26px;
    box-sizing: border-box;
    border-radius: 3px;
    border: 1px solid var(--bbbbbb, #BBB);
    background: var(--ffffff, #FFF);
    padding: 0 8px;
    font-size: 14px;
}

.auth-input:focus {
    outline: none;
    border-color: #0070c0;
}

.auth-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 373px;
    max-width: 100%;
    /* KLKEFACT-341 — (4) l'écart ligne→boutons est porté par .auth-actions margin-top (30px) */
    margin: 0 auto;
}

.auth-remember {
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-link {
    color: #0070c0;
    text-decoration: underline;
    cursor: pointer;
}

.auth-link:hover {
    color: #ff7200;
}

.auth-actions {
    display: flex;
    /* KLKEFACT-341 — écart horizontal entre « Connexion » et « Annuler » = 20px */
    gap: 20px;
    justify-content: center;
    /* KLKEFACT-341 — (4) ligne→boutons = 30px (haut) ; (6) boutons→séparateur bas = 30px */
    margin: 30px 0;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* KLKEFACT-341 — (5) « Annuler » et « Connexion » ont la même largeur */
    min-width: 150px;
    box-sizing: border-box;
    background: #0070c0;
    color: #fff;
    border: 0;
    border-radius: 20px;
    padding: 7px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.auth-btn:hover {
    background: #ff7200;
    color: #fff;
}

.auth-error {
    color: #c0392b;
    text-align: center;
    margin: 8px auto;
    max-width: 520px;
}

.auth-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-signup {
    text-align: center;
    /* KLKEFACT-341 — (7) « Vous n'avez pas de compte ? » → « S'inscrire » = 20px */
    margin: 0 0 20px;
}

/* ── Écran 2 : sélection d'utilisateur ── */
.auth-list-title {
    color: var(--0070C0, #0070C0);
    text-align: center;
    font-family: Arial;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    /* KLKEFACT-341 — (8) l'écart titre→recherche (40px) est porté par .auth-user-search margin-top */
    margin: 16px 0 0;
}

/* KLKEFACT-341 — (8) titre→recherche = 40px ; (9) recherche→en-tête tableau = 40px */
.auth-user-search {
    margin: 40px 0;
}

.auth-user-table {
    width: 857px;
    max-width: 100%;
    margin: 0 auto;
}

.auth-user-head,
.auth-user-row {
    display: grid;
    /* Le pill a une largeur FIXE (857px) → les colonnes fr se calculent à l'identique sur
       chaque ligne (form indépendant) : champs mot de passe et flèches alignés verticalement. */
    grid-template-columns: 1fr 1fr 219px 56px;
    gap: 16px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

/* Colonnes Utilisateur / Email : texte noir Arial 14 / 400, tronqué si trop long. */
.auth-user-row > span {
    color: var(--000000, #000);
    font-family: Arial;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-user-head {
    font-weight: 700;
    padding: 6px 20px;
    /* KLKEFACT-341 — (10) en-tête→première ligne = 10px */
    margin-bottom: 10px;
}

.auth-user-row {
    height: 36px;
    background: var(--EBEBEB, #EBEBEB);
    border-radius: 20px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.auth-input-sm {
    width: 219px;
    height: 26px;
    box-sizing: border-box;
    border-radius: 3px;
    border: 1px solid var(--bbbbbb, #BBB);
    background: var(--ffffff, #FFF);
    padding: 0 8px;
    font-size: 14px;
}

.auth-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 24px;
    border: 0;
    border-radius: 20px;
    background: #a9d4f5;
    color: #fff;
    cursor: pointer;
}

.auth-arrow.active {
    background: var(--0070-c-0, #0070C0);
}

.auth-arrow:hover {
    background: #ff7200;
}
