.register-screen {
    --auth-bg: #FAFAF9;
    --auth-surface: #ffffff;
    --auth-input: #FAFAF9;
    --auth-text: #1C1917;
    --auth-muted: #78716C;
    --auth-subtle: #A8A29E;
    --auth-border: #E7E5E4;
    --auth-border-soft: #F0EEEC;
    --auth-orange: #F37A1F;
    --auth-orange-dark: #D9660F;
    --auth-navy: #061B4E;
    --auth-soft-orange: #fff3e8;
    --auth-soft-blue: #EAF1FF;
    --auth-red: #dc2626;
    --auth-green: #059669;
    --auth-shadow: 0 22px 50px rgba(28, 25, 23, 0.09);

    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(42px, 5.5vh, 72px) 1rem 36px;
    background:
        radial-gradient(circle at top left, rgba(11, 70, 216, 0.07), transparent 30%),
        radial-gradient(circle at top right, rgba(243, 122, 31, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(250, 250, 249, 0.65)),
        var(--auth-bg);
}

.register-screen a {
    color: inherit;
    text-decoration: none !important;
}

.register-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    animation: authFadeUp 320ms ease;
    display: grid;
    gap: 18px;
}

.register-header {
    width: 100%;
}

.auth-logo-wrap {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(243, 122, 31, 0.18);
}

.auth-logo {
    width: 68px;
    height: 68px;
}

.auth-brand-name {
    margin: 0 0 0.35rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-blue,
.brand-mid {
    color: #0B46D8;
}

.brand-violet {
    color: #0B46D8;
}

.brand-brown {
    color: #B45309;
}

.brand-orange-dark {
    color: #D9660F;
}

.brand-orange {
    color: #F37A1F;
}

.auth-tagline {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.register-back {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    color: var(--auth-text);
    box-shadow: 0 3px 8px rgba(28, 25, 23, 0.05);
}

.register-back:hover,
.register-back:focus-visible {
    color: var(--auth-orange);
    border-color: rgba(243, 122, 31, 0.3);
}

.register-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.register-logo-wrap {
    width: auto;
    height: auto;
    margin: 0;
    box-shadow: 0 7px 16px rgba(243, 122, 31, 0.2);
}

.register-logo {
    width: 52px;
    height: 52px;
}

.register-brand-name {
    margin: 0;
    font-size: 31px;
}

.register-tagline {
    margin-bottom: 20px;
    text-align: center;
    font-size: 13px;
}

.register-card {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--auth-shadow);
}

.register-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background: var(--auth-surface);
}

.register-step-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 66px;
    color: var(--auth-subtle);
}

.register-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FAFAF9;
    border: 2px solid #F0EEEC;
    font-size: 0.8rem;
    font-weight: 700;
}

.register-step-label {
    font-size: 11px;
    font-weight: 600;
}

.register-step-line {
    flex: 1;
    height: 2px;
    background: #F0EEEC;
    margin: 0 8px 17px;
}

.register-step-chip.is-active {
    color: var(--auth-orange);
}

.register-step-chip.is-active .register-step-circle {
    background: var(--auth-orange);
    border-color: var(--auth-orange);
    color: #fff;
}

.register-step-line.is-active {
    background: var(--auth-orange);
}

.register-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.register-card-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--auth-soft-orange);
    color: var(--auth-orange);
}

.register-card-icon-step {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.register-card-icon-step.is-active {
    opacity: 1;
}

.auth-card-icon-svg,
.auth-input-icon svg,
.auth-password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-card-title {
    margin: 0;
    color: var(--auth-text);
    font-size: 21px;
    font-weight: 800;
}

.register-step-subtitle {
    margin: 2px 0 0;
    color: var(--auth-muted);
    font-size: 12.5px;
    line-height: 18px;
}

.register-alert {
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: var(--auth-red);
}

.register-alert-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
}

.register-alert-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 13px;
    line-height: 1.4;
}

.register-form {
    display: block;
}

.register-step-panel {
    display: block;
}

.register-step-panel[hidden] {
    display: none;
}

.register-field {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0;
}

.auth-field-head label {
    color: #44403C;
    font-size: 13px;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0 14px 0 44px;
    border: 1.5px solid var(--auth-border);
    border-radius: 14px;
    background: var(--auth-input);
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-input-wrap:focus-within {
    border-color: var(--auth-orange);
    background: var(--auth-surface);
    box-shadow: 0 0 0 4px rgba(243, 122, 31, 0.1);
}

.auth-input-wrap.has-error {
    border-color: #fecaca;
    background: #fff9f9;
}

.auth-input-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-subtle);
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--auth-orange);
}

.auth-input-wrap input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--auth-text);
    font-size: 15px;
    line-height: 1.35;
    box-shadow: none !important;
    font-family: inherit;
    -webkit-appearance: none;
    outline: none;
}

.auth-input-wrap input::placeholder {
    color: var(--auth-subtle);
}

.auth-input-wrap input.form-control {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.auth-password-toggle,
.register-confirm-indicator {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: -0.25rem;
    border: 0;
    background: transparent;
    color: var(--auth-subtle);
}

.auth-password-toggle {
    cursor: pointer;
}

.register-confirm-indicator.is-valid {
    color: var(--auth-green);
}

.register-confirm-indicator.is-invalid {
    color: var(--auth-red);
}

.register-field-error {
    min-height: 1.15rem;
    color: var(--auth-red);
    font-size: 12px;
    line-height: 1.35;
}

.register-strength {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -8px 0 16px;
}

.register-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #F0EEEC;
}

.register-strength strong {
    min-width: 44px;
    color: var(--auth-subtle);
    font-size: 0.72rem;
    font-weight: 800;
}

.auth-primary-btn,
.auth-secondary-btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.register-primary-btn {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 20px;
    background: var(--auth-orange);
    color: #fff;
    box-shadow: 0 14px 28px rgba(243, 122, 31, 0.22);
}

.register-primary-btn:hover,
.register-primary-btn:focus-visible {
    background: var(--auth-orange-dark);
    color: #fff;
    transform: translateY(-1px);
}

.register-primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.register-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 14px;
}

.register-divider span {
    flex: 1;
    height: 1px;
    background: var(--auth-border-soft);
}

.register-divider strong {
    color: var(--auth-subtle);
    font-size: 0.75rem;
    font-weight: 600;
}

.register-secondary-btn {
    width: 100%;
    min-height: 52px;
    background: var(--auth-soft-blue);
    color: var(--auth-text);
    margin-bottom: 4px;
}

.register-secondary-btn:hover,
.register-secondary-btn:focus-visible {
    background: #DCE6FF;
    color: var(--auth-text);
}

.register-terms {
    margin: 12px 0 0;
    text-align: center;
    color: var(--auth-subtle);
    font-size: 13px;
    line-height: 1.45;
}

.register-terms a {
    color: var(--auth-orange);
    font-weight: 600;
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .register-screen {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem 3rem;
    }

    .register-shell {
        margin: 0;
    }
}

@media (max-width: 520px) {
    .register-screen {
        padding: clamp(42px, 5vh, 60px) 0.75rem 2rem;
    }

    .register-card {
        padding: 1.15rem;
        border-radius: 20px;
    }

    .register-brand-name {
        font-size: 28px;
    }

    .register-steps {
        padding: 10px 12px;
    }

    .register-step-chip {
        min-width: 56px;
        flex: 1 1 0;
    }

    .register-step-label {
        font-size: 0.7rem;
    }
}
   Connexion via un compte externe (Google, Apple, Facebook)
   Aligné sur .auth-secondary-btn : 54px, radius 15px.
   ═══════════════════════════════════════════════════ */
.auth-social {
    display: grid;
    gap: 10px;
    margin-bottom: 0.9rem;
}
.auth-social-btn {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid var(--auth-border, #E7E5E4);
    border-radius: 15px;
    background: #fff;
    color: var(--auth-text, #1C1917);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.auth-social-btn:hover,
.auth-social-btn:focus-visible {
    background: #FAFAF9;
    color: var(--auth-text, #1C1917);
    box-shadow: 0 6px 18px rgba(28, 25, 23, .08);
}
.auth-social-btn:active { transform: scale(.99); }
.auth-social-btn:disabled { opacity: .6; cursor: progress; }
.auth-social-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.auth-social-btn--apple { background: #1C1917; border-color: #1C1917; color: #fff; }
.auth-social-btn--apple:hover { background: #000; color: #fff; }
.auth-social-btn--facebook { background: #fff; }
/* Bouton natif Google gardé hors écran : le flux officiel reste utilisé. */
.auth-social-native { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; }
.auth-social-form { display: none; }
