/* css/signup.css
   Signup redesign: corpo pagina con due card affiancate, header invariato */
.hidden {
  display: none !important;
}

.signup-page {
  background: #ffffff;
  color: var(--text, #0f172a);
}

.signup-main {
  position: relative;
  padding: 144px 0 96px;
}

.signup-main::before,
.signup-main::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

.signup-main::before {
  top: 104px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08), transparent 68%);
}

.signup-main::after {
  top: 240px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.07), transparent 68%);
}

.signup-stage,
.signup-shell {
  position: relative;
  z-index: 1;
}

.signup-shell__head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.signup-shell__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
  color: var(--brand, #4f46e5);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px -24px rgba(79, 70, 229, 0.26);
}

.signup-shell__title {
  margin: 18px 0 10px;
  font-size: clamp(2.25rem, 4.8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--text, #0f172a);
}

.signup-shell__lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted, #475569);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.account-switch {
  display: flex;
  gap: 8px;
  width: min(100%, 420px);
  margin: 0 auto 30px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 28px 40px -34px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.account-switch .tab {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted, #475569);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.account-switch .tab:hover {
  transform: translateY(-1px);
}

.account-switch .tab:focus-visible {
  outline: none;
  box-shadow: var(--ring, 0 0 0 4px rgba(99, 102, 241, 0.16));
}

.account-switch .tab.active {
  color: var(--brand, #4f46e5);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(167, 139, 250, 0.18));
  box-shadow:
    0 18px 28px -24px rgba(79, 70, 229, 0.45),
    inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.signup-forms {
  position: relative;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.signup-pane {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 1)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  box-shadow:
    0 36px 70px -42px rgba(15, 23, 42, 0.22),
    0 20px 28px -24px rgba(79, 70, 229, 0.14);
}

.signup-pane::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  background:
    radial-gradient(360px 150px at 0% 0%, rgba(79, 70, 229, 0.08), transparent 72%),
    radial-gradient(360px 150px at 100% 0%, rgba(34, 197, 94, 0.07), transparent 72%);
  pointer-events: none;
}

.signup-pane > * {
  position: relative;
  z-index: 1;
}

.signup-pane--details {
  padding: 34px;
}

.signup-pane--branding {
  position: sticky;
  top: 112px;
  padding: 28px;
}

.pane-header {
  margin-bottom: 28px;
}

.pane-header--compact {
  margin-bottom: 22px;
}

.pane-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--brand, #4f46e5);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pane-header h2 {
  margin: 14px 0 8px;
  color: var(--text, #0f172a);
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.pane-header p {
  margin: 0;
  color: var(--text-muted, #475569);
  line-height: 1.7;
}

.pane-section + .pane-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.pane-section--tight + .pane-section--tight {
  margin-top: 22px;
  padding-top: 22px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h3 {
  margin: 0;
  color: var(--text, #0f172a);
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: block;
  margin: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label,
.location-row label,
.chain-options label,
.upload-stack label,
.color-pickers label {
  color: var(--text, #0f172a);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.field__label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.94rem;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 15px 17px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fcfdff);
  color: var(--text, #0f172a);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s ease,
    background 0.2s ease;
}

.signup-form input::placeholder,
.signup-form textarea::placeholder {
  color: #94a3b8;
}

.signup-form input:hover,
.signup-form select:hover,
.signup-form textarea:hover {
  border-color: rgba(148, 163, 184, 0.88);
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.12),
    0 18px 28px -28px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

.signup-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  accent-color: var(--brand, #4f46e5);
  flex: 0 0 auto;
}

.signup-form input[type="checkbox"]:focus,
.signup-form input[type="checkbox"]:hover {
  box-shadow: none;
  transform: none;
}

.signup-form input[type="file"] {
  min-height: 58px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.signup-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--brand, #4f46e5), #7c3aed);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.signup-form input[type="file"]:focus {
  transform: none;
}

.chain-box,
.single-location,
.locations-builder {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.86), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.chain-box {
  padding: 18px 20px;
  margin-bottom: 18px;
}

.chain-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  cursor: pointer;
}

.check-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 1px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: #ffffff;
}

.chain-copy {
  display: grid;
  gap: 4px;
}

.chain-copy strong {
  color: var(--text, #0f172a);
  font-size: 0.97rem;
  line-height: 1.2;
}

.chain-copy small {
  color: var(--text-muted, #64748b);
  font-size: 0.86rem;
  line-height: 1.6;
}

.chain-options {
  margin-top: 16px;
}

.single-location,
.locations-builder {
  padding: 22px;
}

.single-location {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.locations-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 2px;
}

.locations-head h4 {
  margin: 0 0 4px;
  color: var(--text, #0f172a);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.locations-head p {
  margin: 0;
  color: var(--text-muted, #64748b);
  line-height: 1.6;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.location-row {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow: 0 18px 26px -28px rgba(15, 23, 42, 0.18);
}

.location-row label {
  margin: 0;
}

.location-row label input {
  margin-top: 8px;
}

.location-row .remove {
  min-height: 52px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 16px;
  background: rgba(254, 242, 242, 0.96);
  color: #991b1b;
  padding: 0 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.location-row .remove:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 16px 22px -24px rgba(239, 68, 68, 0.34);
}

.btn-addloc {
  width: 100%;
  min-height: 54px;
}

.brand-preview {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  margin-bottom: 22px;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 24px 38px -34px rgba(15, 23, 42, 0.2);
  --preview-brand: #4f46e5;
  --preview-dark: #3730a3;
  --preview-accent: #22c55e;
  --preview-danger: #ef5350;
}

.brand-preview__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 150px at 0% 0%, rgba(79, 70, 229, 0.16), transparent 72%),
    radial-gradient(280px 160px at 100% 0%, rgba(34, 197, 94, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.98));
  background-position: center;
  background-size: cover;
}

.brand-preview__surface {
  position: relative;
  z-index: 1;
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(10px);
}

.brand-preview__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-preview__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-muted, #64748b);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  overflow: hidden;
  box-shadow: 0 18px 26px -26px rgba(15, 23, 42, 0.2);
}

.brand-preview__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-preview__meta {
  display: grid;
  gap: 4px;
}

.brand-preview__meta strong {
  color: var(--text, #0f172a);
  font-size: 1.04rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.brand-preview__meta span {
  color: var(--text-muted, #64748b);
  font-size: 0.92rem;
}

.brand-preview__swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.preview-swatch {
  --preview-swatch-color: var(--preview-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--preview-swatch-color);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--preview-swatch-color);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 22px -26px rgba(15, 23, 42, 0.28);
}

.preview-swatch--brand {
  --preview-swatch-color: var(--preview-brand);
}

.preview-swatch--dark {
  --preview-swatch-color: var(--preview-dark);
}

.preview-swatch--accent {
  --preview-swatch-color: var(--preview-accent);
}

.preview-swatch--danger {
  --preview-swatch-color: var(--preview-danger);
}

.preview-swatch em {
  display: none;
}

.preview-swatch small {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.brand-preview__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-pill {
  --mini-pill-color: var(--preview-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--mini-pill-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--mini-pill-color);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 22px -24px rgba(15, 23, 42, 0.24);
}

.mini-pill--accent {
  --mini-pill-color: var(--preview-accent);
}

.upload-stack {
  display: grid;
  gap: 14px;
}

.color-pickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.color-field {
  --color-field-tone: var(--brand, #4f46e5);
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 16px;
  border: 1px solid var(--color-field-tone);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px -30px rgba(15, 23, 42, 0.3);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s ease,
    background 0.2s ease;
}

.color-field--brand {
  --color-field-tone: #4f46e5;
}

.color-field--dark {
  --color-field-tone: #3730a3;
}

.color-field--accent {
  --color-field-tone: #22c55e;
}

.color-field--danger {
  --color-field-tone: #ef5350;
}

.color-field:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 30px -30px rgba(15, 23, 42, 0.34);
  transform: translateY(-1px);
}

.color-field:focus-within {
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.color-pickers .color-field .field__label {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  color: var(--color-field-tone);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.color-pickers .color-field input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  transform: none;
}

.color-pickers .color-field input[type="color"]:focus {
  box-shadow: none;
  transform: none;
}

.form-actions {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.signup-submit {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 24px 34px -28px rgba(79, 70, 229, 0.38);
}

.signup-submit:hover {
  box-shadow: 0 28px 38px -30px rgba(79, 70, 229, 0.46);
}

.terms {
  margin: 16px 0 0;
  color: var(--text-muted, #64748b);
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: center;
}

.terms a {
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.signup-success {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 32px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow:
    0 36px 70px -42px rgba(15, 23, 42, 0.22),
    0 20px 28px -24px rgba(79, 70, 229, 0.14);
  text-align: center;
}

.signup-success__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.signup-success h2 {
  margin: 18px 0 12px;
  color: var(--text, #0f172a);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  letter-spacing: -0.05em;
}

.signup-success p {
  margin: 0;
  color: var(--text-muted, #475569);
  line-height: 1.8;
}

.signup-success__hint {
  margin-top: 14px;
  font-size: 0.92rem;
}

.signup-success__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  color: var(--brand, #4f46e5);
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.14s ease,
    box-shadow 0.18s ease;
}

.signup-success__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px -24px rgba(79, 70, 229, 0.3);
}

@media (max-width: 1080px) {
  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-pane--branding {
    position: static;
  }
}

@media (max-width: 720px) {
  .signup-main {
    padding: 128px 0 84px;
  }

  .signup-pane--details,
  .signup-pane--branding,
  .signup-success {
    padding: 24px;
    border-radius: 28px;
  }

  .form-grid,
  .single-location,
  .color-pickers {
    grid-template-columns: 1fr;
  }

  .location-row {
    grid-template-columns: 1fr;
  }

  .brand-preview__swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .signup-shell__head {
    margin-bottom: 22px;
  }

  .signup-shell__title {
    letter-spacing: -0.04em;
  }

  .account-switch {
    width: 100%;
    margin-bottom: 22px;
  }

  .signup-pane--details,
  .signup-pane--branding,
  .signup-success {
    padding: 20px;
  }

  .brand-preview {
    min-height: 220px;
  }

  .brand-preview__surface {
    min-height: 220px;
    padding: 18px;
  }

  .brand-preview__top {
    align-items: flex-start;
  }

  .brand-preview__logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}
