/* Connexion et création de compte */
.auth-refined {
    background: radial-gradient(ellipse at 12% 0%, #eeeafa 0, transparent 38%),
                radial-gradient(ellipse at 90% 30%, #f1f7f5 0, transparent 35%),
                #f8f7fb;
}
.auth-refined .auth-header {
    max-width: 1370px;
    padding-inline: 36px;
}
.auth-refined .auth-header p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.auth-refined .auth-header p a {
    margin: 0;
    padding: 9px 15px;
    border: 1px solid #e4dff0;
    border-radius: 11px;
    background: #fff;
    text-decoration: none;
}
.auth-refined .auth-header p a:hover {
    border-color: #b6a4e2;
    background: #f8f5ff;
}
.auth-refined .auth-shell {
    width: min(1298px, calc(100% - 72px));
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: 22px;
    align-items: stretch;
}
.auth-refined .auth-story {
    padding: clamp(32px, 4vw, 52px);
    border: 1px solid #e2ddf0;
    border-radius: 26px;
    background: linear-gradient(150deg, #f1edfc 0%, #f8f6ff 49%, #e8f4ef 100%);
    color: #242039;
    box-shadow: 0 16px 40px #31225a0b;
}
.auth-refined .auth-story::before,
.auth-refined .auth-story::after {
    border-color: #a995d52b;
}
.auth-refined .auth-story .eyebrow { color: #6650ad; }
.auth-refined .auth-story h2 { color: #29233d; }
.auth-refined .auth-story h2 span { color: #6a52bf; }
.auth-refined .auth-story > div > p:not(.eyebrow) { color: #666078; }
.auth-refined .story-board {
    border: 1px solid #ece8f4;
    border-radius: 20px;
    box-shadow: 0 14px 32px #493b6f10;
}
.auth-refined .story-board-top strong { font-size: 13px; }
.auth-refined .story-board-top span { font-size: 11px; color: #746d81; }
.auth-refined .story-row strong { font-size: 12px; }
.auth-refined .story-row small { font-size: 11px; color: #706b7c; }
.auth-refined .story-footer { color: #6b6379; font-size: 11px; }
.auth-refined .story-steps li { margin-bottom: 20px; }
.auth-refined .story-steps .step-count {
    width: 36px;
    height: 36px;
    border: 1px solid #ded5f2;
    border-radius: 12px;
    background: #fff;
    color: #6a52bf;
    font-weight: 700;
}
.auth-refined .story-steps strong { color: #302940; font-weight: 700; }
.auth-refined .story-steps small { color: #666078; }
.auth-refined .story-price {
    padding: 17px 20px;
    border: 1px solid #d5e8df;
    border-radius: 16px;
    background: #f6fcf8;
}
.auth-refined .story-price strong { color: #28775f; font-weight: 700; }
.auth-refined .story-price span { color: #4c6f60; font-size: 11px; }
.auth-refined .auth-form-panel {
    padding: clamp(28px, 4vw, 56px);
    border: 1px solid #e8e5ef;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 44px #31225a0c;
}
.auth-refined .auth-form-inner { max-width: 470px; }
.auth-refined .auth-title { letter-spacing: -.045em; }
.auth-refined .auth-description { font-size: 14px; }
.auth-refined .form-field label { color: #494258; font-size: 13px; }
.auth-refined .form-field input,
.auth-refined .form-field select {
    border-color: #dedbe8;
    border-radius: 12px;
    background: #fbfaff;
}
.auth-refined .form-field input:focus,
.auth-refined .form-field select:focus {
    border-color: #9a7cce;
    background: #fff;
}
.auth-refined .form-field input[aria-invalid="true"],
.auth-refined .form-field select[aria-invalid="true"] { border-color: #c35664; }
.auth-refined .btn { border-radius: 12px; }
.auth-refined .btn-primary { background: #6742cc; }
.auth-refined .btn-primary:hover { background: #5130ae; }
.auth-refined .auth-divider { color: #766c83; font-size: 11px; }
.auth-refined .auth-invite-hint {
    border: 1px solid #ebe4f5;
    border-radius: 14px;
    background: #f8f5fd;
    color: #625a70;
    font-size: 12px;
}
.auth-refined .auth-invite-hint strong { color: #453b54; }
.auth-refined .role-choice {
    border-color: #e7e2ee;
    border-radius: 16px;
    background: #fcfbfe;
}
.auth-refined .role-choice:hover {
    border-color: #ae9bd8;
    background: #f8f5ff;
    box-shadow: 0 8px 20px #6742cc12;
}
.auth-refined .role-choice span { min-width: 0; }
.auth-refined .role-choice small { font-size: 12px; }
.auth-refined .wizard-progress li { color: #716779; }
.auth-refined .wizard-progress li[aria-current="step"] { color: #6742cc; }
.auth-refined .wizard-progress li.is-done { color: #21735b; }
.auth-refined .field-hint, .auth-refined .terms-note { font-size: 11px; }
.auth-refined .auth-legal { color: #756d80; font-size: 11px; }

@media (max-width: 900px) {
    .auth-refined .auth-shell { gap: 16px; }
    .auth-refined .auth-story, .auth-refined .auth-form-panel { padding: 28px; }
}
@media (max-width: 767px) {
    .auth-refined .auth-header { padding: 14px 20px; }
    .auth-refined .auth-header p { font-size: 11px; }
    .auth-refined .auth-header p a { white-space: nowrap; }
    .auth-refined .auth-shell { display: block; width: min(480px, calc(100% - 32px)); min-height: 0; }
    .auth-refined .auth-story { display: none; }
    .auth-refined .auth-form-panel { padding: 28px 24px; border-radius: 22px; }
    .auth-refined .auth-legal { padding: 20px 20px 28px; }
}
@media (max-width: 380px) {
    .auth-refined .auth-form-panel { padding: 24px 18px; }
    .auth-refined .auth-header p a { padding-inline: 11px; }
    .auth-refined .invite-code-row { flex-wrap: wrap; }
    .auth-refined .invite-code-row .btn { width: 100%; }
}
