/* 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;
    margin: 22px auto;
}

/* ── É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;
    margin-bottom: 14px;
}

.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%;
    margin: 0 auto 6px;
}

.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;
    gap: 12px;
    justify-content: center;
    margin: 18px 0;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    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;
    margin: 6px 0;
}

/* ── É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;
    margin: 16px 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;
}

.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;
}
