/* Formulaire d'inscription minimal — 3 champs. */

/* En-tête minimal : lien « Retour à l'accueil » + logo, pas de navbar. */
.register-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 2rem;
}

.register-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #6b7280;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
}

.register-topbar-back:hover {
    color: #2563eb;
    text-decoration: underline;
}

.register-topbar-logo {
    height: 72px;
    width: auto;
}

/* Sur petit écran, on empile le lien au-dessus du logo, centrés. */
@media (max-width: 30rem) {
    .register-topbar {
        flex-direction: column;
        gap: .75rem;
        padding: 1rem;
    }
}

.register-page {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.register-card {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.register-title    { font-size: 1.5rem; margin: 0 0 .25rem; }
.register-subtitle { color: #6b7280; margin: 0 0 1.5rem; font-size: .95rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    font-size: .9rem;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: .375rem;
    font-size: 1rem;
}

.form-group input[aria-invalid="true"] { border-color: #dc2626; }

.password-wrap { position: relative; }

.password-toggle {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    cursor: pointer;
    color: #6b7280;
    padding: .25rem .5rem;
}

.field-hint  { font-size: .8rem; color: #6b7280; margin: .35rem 0 0; }
.field-error { font-size: .8rem; color: #dc2626; margin: .35rem 0 0; }

.password-strength {
    margin-top: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.password-strength-bar {
    height: 4px;
    flex: 1;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.password-strength-bar::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--strength, 0%);
    background: var(--strength-color, #d1d5db);
    transition: width .2s ease, background .2s ease;
}

.password-strength-label { font-size: .75rem; color: #6b7280; min-width: 5rem; }

.form-check {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: .875rem;
}

.form-check input { margin-top: .2rem; flex-shrink: 0; }
.form-check label { font-weight: 400; }

.btn-block { width: 100%; padding: .7rem; font-size: 1rem; }

.legal-notice {
    font-size: .75rem;
    color: #6b7280;
    margin-top: 1rem;
    line-height: 1.5;
}

.register-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .875rem;
}

/* Honeypot : hors écran plutôt que display:none, moins détectable
   par les robots qui filtrent les champs non visibles. */
.lc-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer minimal — barre légale discrète sous le formulaire,
   pas de grand pied de page (l'ancienne inscription n'en avait pas). */
.register-legal-footer {
    margin-top: 2.5rem;
    padding: 1.25rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: .8rem;
}

.register-legal-footer nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.register-legal-footer a {
    color: #6b7280;
    text-decoration: none;
}

.register-legal-footer a:hover {
    text-decoration: underline;
}

.register-legal-copy {
    margin: .5rem 0 0;
}
