/* Tapefy custom — UX review 2026-11-20: sign-in, password, sign-up and verification pages (layouts/auth.blade.php, body.tp-auth) in
   the locked « Grille verre » portal look: Geist, white panel on the band, ink primary button, #c6cbce fields, one top bar like /creer.
   Loaded after the InfyVcards style.css / page.css, so every rule is scoped to body.tp-auth. */

body.tp-auth {
    display: flex; flex-direction: column; min-height: 100vh; margin: 0;
    background: var(--tapefy-band); color: var(--tapefy-ink);
    font-family: var(--tapefy-font-portal); font-size: 14px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body.tp-auth :is(h1, h2, h3) { font-family: var(--tapefy-font-portal); }

/* ---- top bar: wordmark + the language you can switch to ---- */
.tp-auth__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; padding: 0 40px; border-bottom: 1px solid var(--tapefy-line); background: #fff; }
.tp-auth__logo { color: var(--tapefy-ink) !important; font-family: var(--tapefy-font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.tp-auth__lang { padding: 8px 0; border: 0; background: none; color: var(--tapefy-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tp-auth__lang:hover { color: var(--tapefy-ink); text-decoration: underline; }

/* ---- page ---- */
.tp-auth__main { flex: 1 0 auto; display: flex; justify-content: center; padding: 56px 16px 48px; }
.tp-auth__wrap { width: 100%; max-width: 420px; }
.tp-auth__wrap--wide { max-width: 640px; }
.tp-auth__card { padding: 32px; border: 1px solid var(--tapefy-line); border-radius: var(--tapefy-radius-lg); background: var(--tapefy-panel); box-shadow: var(--tapefy-shadow-soft); }
.tp-auth__title { margin: 0 0 8px; color: var(--tapefy-ink); font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.tp-auth__lead { margin: 0 0 4px; color: var(--tapefy-muted); font-size: 14px; }
.tp-auth__card form { margin-top: 20px; }
.tp-auth__field { margin-bottom: 16px; }
.tp-auth__labelrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.tp-auth__labelrow a { font-size: 13px; }
.tp-auth__secondary { margin-top: 10px !important; }
.tp-auth__alt { margin-top: 20px; color: var(--tapefy-muted); font-size: 14px; text-align: center; }
.tp-auth__alt p { margin: 0 0 8px; }
.tp-auth__foot { padding: 20px 16px 28px; color: var(--tapefy-muted); font-size: 12px; text-align: center; }
.tp-auth__foot a { color: var(--tapefy-muted) !important; }

body.tp-auth a:not(.btn) { color: var(--tapefy-accent-ink); font-weight: 500; text-decoration: none; }
body.tp-auth a:not(.btn):hover { text-decoration: underline; }

/* ---- fields (owner's #c6cbce line) ---- */
body.tp-auth .form-label { margin-bottom: 6px; color: var(--tapefy-ink); font-size: 13px; font-weight: 500; }
body.tp-auth .form-control {
    height: 44px; padding: 0 12px; border: 1px solid var(--tapefy-field-line); border-radius: var(--tapefy-radius);
    background: var(--tapefy-field-fill); color: var(--tapefy-ink); font-family: inherit; font-size: 15px; box-shadow: none;
}
body.tp-auth .form-control:hover { border-color: var(--tapefy-field-line-hover); }
body.tp-auth .form-control:focus { border-color: var(--tapefy-focus); background: #fff; box-shadow: 0 0 0 3px var(--tapefy-accent-soft); outline: 0; }
body.tp-auth .form-control::placeholder { color: var(--tapefy-muted); }
body.tp-auth .input-password-hide { color: var(--tapefy-muted) !important; }
body.tp-auth .form-check { display: flex; align-items: center; gap: 10px; padding-left: 0; }
body.tp-auth .form-check-input { flex: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--tapefy-field-line); border-radius: 4px; background-color: #fff; }
body.tp-auth .form-check-input:checked { border-color: var(--tapefy-ink); background-color: var(--tapefy-ink); }
body.tp-auth .form-check-label { color: var(--tapefy-ink); font-size: 14px; }
body.tp-auth .text-muted { color: var(--tapefy-muted) !important; font-size: 13px; }

/* ---- buttons: ink primary, white secondary, full width ---- */
body.tp-auth .tp-auth__submit {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 16px;
    border: 1px solid var(--tapefy-line-strong); border-radius: var(--tapefy-radius);
    background: #fff; color: var(--tapefy-ink); font-family: inherit; font-size: 14px; font-weight: 500; box-shadow: none;
}
body.tp-auth .tp-auth__submit + .tp-auth__submit { margin-top: 10px; }
body.tp-auth .btn-primary.tp-auth__submit,
body.tp-auth .btn-primary.tp-auth__submit:is(:hover, :focus, :active) { border-color: var(--tapefy-ink); background: var(--tapefy-ink); color: #fff; }
body.tp-auth .btn-outline-secondary.tp-auth__submit:is(:hover, :focus, :active) { border-color: var(--tapefy-line-strong); background: var(--tapefy-band); color: var(--tapefy-ink); }
body.tp-auth :is(.btn, .tp-auth__lang, a, .form-check-input):focus-visible { outline: 2px solid var(--tapefy-focus) !important; outline-offset: 2px; }

/* ---- messages (layouts.errors, flash, status) ---- */
body.tp-auth .alert { display: block; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--tapefy-line); border-radius: var(--tapefy-radius); font-size: 14px; }
body.tp-auth .alert-danger { border-color: #f0d6d1; background: var(--tapefy-danger-soft); color: var(--tapefy-danger); }
body.tp-auth .alert-success { border-color: #d6e8dd; background: var(--tapefy-success-bg); color: var(--tapefy-success-ink) !important; }
body.tp-auth .alert svg { display: none; }
body.tp-auth .alert .me-5 { margin: 0 !important; }

@media (max-width: 575.98px) {
    .tp-auth__bar { height: 56px; padding: 0 16px; }
    .tp-auth__main { padding: 24px 16px 32px; }
    .tp-auth__card { padding: 24px 20px; }
    .tp-auth__title { font-size: 22px; }
    body.tp-auth .form-control { font-size: 16px; } /* iOS does not zoom on focus */
}
