*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: system-ui, -apple-system, sans-serif;
    background: #e8edf3;
    color: #1e293b;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    padding: 28px 24px;
    background: #fff;
    border-radius: 10px;
    border-top: 3px solid #1e40af;
    box-shadow: 0 2px 6px rgba(0,0,0,.10), 0 6px 18px rgba(0,0,0,.07);
}

h1 {
    font-size: 18px;
    font-weight: 800;
    color: #1e40af;
    text-align: center;
    margin-bottom: 18px;
}

.auth-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; }
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.auth-tabs a.on { color: #1e40af; border-bottom-color: #1e40af; }

form { display: flex; flex-direction: column; gap: 12px; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #475569; }

input {
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1e293b;
}
input:focus { outline: 2px solid #93c5fd; border-color: #1e40af; }

button {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #1e40af;
    color: #fff;
    cursor: pointer;
}
button:hover { background: #1e3a8a; }
button.danger { background: #b91c1c; }
button.danger:hover { background: #991b1b; }

.decide { flex-direction: row; }
.decide button { flex: 1; }

.msg { font-size: 13px; padding: 9px 10px; border-radius: 6px; margin-bottom: 14px; }
.msg.err { background: #fef2f2; color: #b91c1c; }
.msg.ok  { background: #f0fdf4; color: #15803d; }

.req { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; margin-bottom: 18px; }
.req dt { font-weight: 600; color: #64748b; }
.req dd { overflow-wrap: anywhere; }

.hint { font-size: 13px; color: #475569; line-height: 1.4; }
.alt { margin-top: 14px; text-align: center; font-size: 13px; }
.alt a { color: #1e40af; text-decoration: none; }
.alt a:hover { text-decoration: underline; }

/* Connexion par empreinte digitale */
.wa-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-size: 12px; color: #94a3b8; }
.wa-divider::before, .wa-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.wa-btn {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin: 0 auto; padding: 0;
    border-radius: 50%; border: 1px solid #cbd5e1;
    background: #fff; color: #1e40af;
}
.wa-btn:hover { background: #eff6ff; }
.wa-btn svg { width: 24px; height: 24px; }

/* Gestion des empreintes */
#pk-add { display: flex; align-items: center; justify-content: center; gap: 8px; }
#pk-add svg { width: 18px; height: 18px; }
button:disabled { opacity: .6; cursor: wait; }
.pk-list { list-style: none; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.pk-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e2e8f0; border-radius: 6px; }
.pk-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-list strong { font-size: 14px; overflow-wrap: anywhere; }
.pk-list small { font-size: 11px; color: #64748b; }
.pk-list button { padding: 6px 10px; font-size: 12px; }
.pk-list .pk-empty { justify-content: center; font-size: 13px; color: #64748b; border-style: dashed; }
