:root {
    --auth-green: #16a34a;
    --auth-green-dark: #15803d;
    --auth-black: #1a1a1a;
    --auth-white: #ffffff;
    --auth-gray-bg: #f4f4f5;
    --auth-muted: #6b7280;
    --auth-border: #e5e7eb;
    --auth-radius: 12px;
    --auth-radius-pill: 9999px;
}

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

body.auth-page {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--auth-black);
    background: var(--auth-white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.auth-split {
    display: flex;
    min-height: 100vh;
}

/* ——— Colonne formulaire (~60 %) ——— */
.auth-main {
    flex: 0 0 58%;
    display: flex;
    flex-direction: column;
    background: var(--auth-white);
    min-height: 100vh;
}

.auth-main-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 40px 48px;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-shrink: 0;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--auth-black);
    letter-spacing: -0.02em;
}

.auth-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--auth-green);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-progress {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-progress-bar {
    width: 36px;
    height: 4px;
    border-radius: var(--auth-radius-pill);
    background: var(--auth-border);
    transition: background 0.2s;
}

.auth-progress-bar.active {
    background: var(--auth-green-dark);
}

.auth-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 24px;
}

.auth-title {
    font-size: clamp(26px, 3.5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--auth-black);
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: var(--auth-muted);
    margin-bottom: 32px;
    max-width: 440px;
}

.auth-error {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--auth-radius);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
}

.auth-error ul { list-style: disc; padding-left: 18px; }

.auth-field { margin-bottom: 20px; }

.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-black);
    margin-bottom: 8px;
}

.auth-input,
.auth-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--auth-black);
    background: var(--auth-white);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input::placeholder { color: #9ca3af; }

.auth-input:focus,
.auth-select:focus {
    outline: none;
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input { padding-left: 44px; }

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
}

.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--auth-green);
    border: none;
    border-radius: var(--auth-radius);
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 8px;
}

.auth-btn-primary:hover:not(:disabled) { background: var(--auth-green-dark); }
.auth-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.auth-link-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-green);
}

.auth-link-back:hover { text-decoration: underline; }

.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-footer-text a {
    color: var(--auth-green);
    font-weight: 600;
}

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

.auth-note {
    font-size: 12px;
    color: var(--auth-muted);
    margin-top: 16px;
    text-align: center;
}

.auth-forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--auth-muted);
    margin-bottom: 20px;
}

.auth-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--auth-black);
    padding-bottom: 8px;
    margin: 8px 0 12px;
    border-bottom: 1px solid var(--auth-border);
}

/* Cartes de sélection (inscription étape 1) */
.auth-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-choice-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--auth-green);
    border-radius: var(--auth-radius);
    background: var(--auth-white);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s, box-shadow 0.15s;
}

.auth-choice-card:hover {
    background: #f0fdf4;
}

.auth-choice-card.selected {
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.auth-choice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-green);
    font-size: 22px;
}

.auth-choice-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--auth-black);
    line-height: 1.4;
}

.auth-choice-desc {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--auth-muted);
    margin-top: 2px;
}

.auth-form-scroll {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 8px;
}

.auth-form-scroll::-webkit-scrollbar { width: 4px; }
.auth-form-scroll::-webkit-scrollbar-thumb { background: var(--auth-border); border-radius: 4px; }

/* ——— Colonne visuelle (~42 %) ——— */
.auth-visual {
    flex: 1;
    background: var(--auth-gray-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    min-height: 100vh;
}

.auth-visual-inner {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-visual-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 420px;
    border-radius: 20px;
    overflow: hidden;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 36px;
    background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
}

.auth-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual-heading {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.35;
    color: var(--auth-black);
    margin-bottom: 28px;
}

.auth-visual-heading em {
    font-style: normal;
    color: var(--auth-green);
}

.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 32px;
    width: 100%;
}

.auth-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.auth-trust-stars {
    color: var(--auth-green);
    font-size: 14px;
    letter-spacing: 2px;
}

.auth-trust-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-muted);
    max-width: 100px;
    line-height: 1.3;
}

.auth-trust-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-black);
    opacity: 0.5;
}

/* Toast succès (optionnel) */
.auth-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: var(--auth-radius);
    border-top: 3px solid var(--auth-green);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 500;
    z-index: 50;
    max-width: 320px;
}

.auth-toast iconify-icon { color: var(--auth-green); font-size: 20px; }

@media (max-width: 960px) {
    .auth-split { flex-direction: column; }
    .auth-main { flex: none; width: 100%; min-height: auto; }
    .auth-visual {
        order: -1;
        min-height: auto;
        padding: 32px 24px;
    }
    .auth-visual-image {
        max-height: 220px;
        aspect-ratio: 16 / 9;
        margin-bottom: 20px;
    }
    .auth-visual-heading { font-size: 18px; margin-bottom: 16px; }
    .auth-trust-row { gap: 16px 24px; }
    .auth-main-inner { padding: 24px 24px 40px; max-width: none; }
    .auth-header { margin-bottom: 32px; }
    .auth-body { justify-content: flex-start; }
    .auth-form-scroll { max-height: none; }
}

@media (max-width: 480px) {
    .auth-row-2 { grid-template-columns: 1fr; }
}
