/*
 * Pagine di accesso del frontend (site/signup, site/login, site/complete-profile): layout split-screen
 * con pannello brand nero e modulo bianco, dal prototipo Organizer Mode.
 * Classi su-* scritte a mano perché output.css è un Tailwind purgato.
 */
.su-page { display: flex; align-items: center; justify-content: center; padding: 32px 16px 48px; }
.su-card { display: flex; flex-wrap: wrap; width: 100%; max-width: 980px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 17, 21, .14); overflow: hidden; }
.su-brand { flex: 1 1 300px; background: #0f1115; color: #fff; padding: 40px 36px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.su-brand > * { position: relative; }
.su-glow { position: absolute !important; top: -70px; right: -70px; width: 220px; height: 220px; background: rgba(250, 204, 21, .14); border-radius: 50%; filter: blur(46px); }
.su-logo { height: 40px; width: auto; max-width: 100%; display: block; align-self: flex-start; object-fit: contain; filter: invert(1) hue-rotate(180deg); }
.su-headline { margin: 0 0 14px; font-size: 30px; line-height: 1.15; font-weight: 800; color: #fff; }
.su-headline span { color: #facc15; }
.su-lead { margin: 0; font-size: 14px; color: #9ca3af; line-height: 1.65; }
.su-note { border: 1px solid #2a2e36; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.su-note-title { font-size: 13px; font-weight: 700; color: #facc15; }
.su-note-text { font-size: 13px; color: #d1d5db; line-height: 1.55; }
.su-login { margin-top: auto; font-size: 13px; color: #9ca3af; }
.su-login a { color: #facc15; font-weight: 600; text-decoration: none; }
.su-login a:hover { text-decoration: underline; }
.su-form-col { flex: 1 1 380px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.su-eyebrow { font-size: 12px; font-weight: 700; color: #ea580c; letter-spacing: .06em; text-transform: uppercase; }
.su-title { margin: 6px 0 0; font-size: 24px; font-weight: 800; color: #111827; }
.su-subtitle { margin: 6px 0 0; font-size: 14px; color: #4b5563; }
#signup-form, #login-form, #complete-profile-form { display: flex; flex-direction: column; gap: 18px; }
.su-field { display: flex; flex-direction: column; gap: 7px; }
.su-label { font-size: 13px; font-weight: 600; color: #374151; }
.su-input { width: 100%; height: 48px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 14px; font-size: 16px; color: #111827; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.su-input::placeholder { color: #6b7280; }
.su-input:focus { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .15); }
.su-captcha { display: flex; align-items: center; gap: 10px; }
.su-captcha-q { flex: none; height: 48px; padding: 0 14px; display: flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 8px; background: #f3f4f6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; color: #111827; letter-spacing: .06em; white-space: nowrap; user-select: none; }
.su-captcha .su-input-wrap { flex: 1; min-width: 0; }
.su-legal { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.6; }
.su-legal a { color: #c2410c; text-decoration: underline; }
.submit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; background: #f97316; color: #fff; border-radius: 8px; font-weight: 700; font-size: 16px; border: none; cursor: pointer; transition: background .15s; box-shadow: 0 10px 22px rgba(249, 115, 22, .28); }
.submit-btn:hover:not(:disabled) { background: #ea580c; }
.submit-btn:disabled { background: #9ca3af; cursor: not-allowed; opacity: .5; box-shadow: none; }
.su-or { text-align: center; font-size: 13px; color: #6b7280; }
.su-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s, border-color .15s; }
.su-google:hover { background: #f9fafb; border-color: #9ca3af; color: #374151; }
.error-text { color: #dc2626; font-size: 12px; margin-top: 2px; display: block; }
.su-input[aria-invalid=true] { border-color: #ef4444; }
@media (max-width: 480px) {
    .su-brand { padding: 28px 22px; gap: 20px; }
    .su-form-col { padding: 28px 22px; }
    .su-headline { font-size: 26px; }
}

/* Avvisi in testa al modulo (errori, conferme) */
.su-alert { border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.su-alert p { margin: 0; }
.su-alert p + p { margin-top: 4px; }
.su-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.su-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.su-alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.su-alert.hidden { display: none; }

/* Riga "Password" + link "Hai dimenticato la password?" */
.su-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.su-label-row a { font-size: 13px; font-weight: 600; color: #c2410c; text-decoration: none; }
.su-label-row a:hover { text-decoration: underline; }

/* Casella "Ricordami" */
.su-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; cursor: pointer; }
.su-check input { width: 18px; height: 18px; margin: 0; accent-color: #f97316; flex: none; }

/* Link secondari sotto il pannello brand */
.su-login a.su-muted-link { font-size: 12px; font-weight: 400; color: #9ca3af; text-decoration: underline; }
.su-login a.su-muted-link:hover { color: #d1d5db; }
.su-note a { color: #facc15; font-weight: 600; font-size: 13px; text-decoration: none; }
.su-note a:hover { text-decoration: underline; }

/* ===== Completa il profilo (site/complete-profile): modulo lungo ===== */
.su-card-wide { max-width: 1080px; align-items: stretch; }
.su-brand-narrow { flex: 1 1 280px; }
.su-card-wide .su-form-col { flex: 2 1 520px; }

/* Passi della registrazione nel pannello nero */
.su-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.su-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #9ca3af; }
.su-step-dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid #374151; font-size: 13px; font-weight: 700; color: #9ca3af; }
.su-step-dot svg { width: 14px; height: 14px; }
.su-steps li.is-done { color: #d1d5db; }
.su-steps li.is-done .su-step-dot { background: #1f2937; border-color: #1f2937; color: #facc15; }
.su-steps li.is-current { color: #fff; font-weight: 700; }
.su-steps li.is-current .su-step-dot { background: #facc15; border-color: #facc15; color: #111827; }

/* Gruppi del modulo */
.su-section { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.su-section + .su-section { padding-top: 22px; border-top: 1px solid #f3f4f6; }
/* float: il legend diventa un elemento normale, così non interrompe il bordo superiore */
.su-section-title { float: left; width: 100%; padding: 0; margin: 0 0 -4px; font-size: 15px; font-weight: 800; color: #111827; }
.su-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .su-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.su-req { color: #dc2626; }
.su-opt { font-weight: 400; font-size: 12px; color: #6b7280; }
.su-hint { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.5; }

/* Campo con icona-pulsante a destra (data di nascita + calendario) */
.su-input-icon { position: relative; }
.su-input-icon .su-input { padding-right: 52px; }
.su-input-icon-btn { position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #6b7280; }
.su-input-icon-btn svg { width: 20px; height: 20px; }
.su-input-icon-btn input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.su-input-icon-btn input[type=date]::-webkit-calendar-picker-indicator { display: none; -webkit-appearance: none; }

/* Riquadro del genitore */
.su-parent { display: flex; flex-direction: column; gap: 14px; }
.su-parent .su-label { color: #1e3a8a; }

/* Telefono: prefisso + numero */
.su-phone { display: flex; gap: 10px; }
.su-phone > .su-input { flex: 1; min-width: 0; }
.su-select-wrap { position: relative; flex: 0 0 42%; min-width: 120px; max-width: 240px; }
.su-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: none; padding-right: 36px; cursor: pointer; font-size: 15px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.su-select::-ms-expand { display: none; }
.su-select-chevron { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #6b7280; pointer-events: none; }

/* Valore compilato in automatico (nazione) */
.su-readonly { display: flex; align-items: center; background: #f9fafb; color: #374151; font-size: 15px; }
.su-readonly .italic { font-style: italic; color: #6b7280; font-size: 14px; }

/* Interessi: caselle a "pillola" su due colonne */
.su-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .su-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.su-choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; color: #374151; cursor: pointer; transition: border-color .15s, background .15s; }
.su-choice:hover { border-color: #fdba74; }
.su-choice input { width: 18px; height: 18px; margin: 0; accent-color: #f97316; flex: none; }
.su-choice:has(input:checked) { border-color: #f97316; background: #fff7ed; color: #9a3412; font-weight: 600; }
.su-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); }

/* Casella con testo su più righe (newsletter, termini) */
.su-check-top { align-items: flex-start; line-height: 1.5; }
.su-check-top input { margin-top: 2px; }
.su-check a { color: #c2410c; text-decoration: underline; }
