/* ── AUTH PAGES (login / register) ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(249,115,22,0.07), transparent);
    pointer-events: none;
}

.auth-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
}

.auth-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo .z { color: var(--orange); }

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.5px;
    text-align: center;
    margin-bottom: .4rem;
}

.auth-sub {
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.auth-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    font-size: .875rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
}

.field input {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s;
}

.field input::placeholder { color: var(--muted); }
.field input:focus { border-color: var(--orange); }

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: .5rem;
}

.auth-switch {
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
    margin-top: 1.25rem;
}

.auth-switch a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* Lien "Oublié ?" dans le label */
.field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.field-link {
    font-size: .78rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 400;
}
.field-link:hover { color: var(--orange); }

/* Alerte email non confirmé */
.auth-warning {
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.25);
    color: var(--text);
    font-size: .85rem;
    border-radius: 8px;
    padding: .875rem 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Bloc en attente de confirmation (register) */
.auth-pending {
    text-align: center;
    padding: 1.5rem 0 .5rem;
}
.auth-pending-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

/* ── Passkey button ── */
.btn-passkey-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg2);
    color: var(--text);
    font-size: .92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: .25rem;
}
.btn-passkey-login:hover {
    border-color: var(--orange);
    background: rgba(249,115,22,.05);
}
.btn-passkey-login:disabled {
    opacity: .6;
    cursor: wait;
}

/* Séparateur "ou" */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--muted);
    font-size: .78rem;
    margin: .75rem 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

