/* FindFields — portale centri · registrazione (riusa login.css) */

.auth--wide { max-width: 460px; }

.reg-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 1.75rem;
}
.reg-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.reg-dot.is-active,
.reg-dot.is-done {
  background: var(--accent);
  border-color: var(--accent);
}

.reg-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.reg-actions .btn { flex: 1; }
.reg-actions .btn--subtle { flex: 0 0 auto; min-width: 110px; }

.reg-otp {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  padding-left: 0.5em; /* compensa il letter-spacing a destra */
}

/* ---- Telefono con prefisso (come PhoneField dell'app) ---- */

.phonef {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.phonef:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.phonef__cc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.6rem 0 0.8rem;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px 0 0 10px;
}
.phonef__cc:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.phonef__cc > svg { flex-shrink: 0; width: 12px; height: 12px; color: var(--text-faint); }
.phonef__flag { font-size: 1.05rem; line-height: 1; }
.phonef__num {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.72rem 0.95rem 0.72rem 0.8rem;
}
.phonef__num:focus { outline: none; }
.phonef__num::placeholder { color: var(--text-faint); }

.phonef__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: var(--card-shadow);
  animation: phonef-pop 0.16s cubic-bezier(0.2, 0, 0, 1);
}
@keyframes phonef-pop {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .phonef__menu { animation: none; }
}
.phonef__search { margin-bottom: 0.35rem; font-size: 0.9rem; padding: 0.55rem 0.75rem; }
.phonef__list {
  max-height: min(40vh, 300px);
  overflow-y: auto;
}
.phonef__opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 40px;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  background: none;
  border: none;
  border-radius: 9px;
  padding: 0.45rem 0.6rem;
  color: var(--text);
  cursor: pointer;
}
.phonef__opt:hover,
.phonef__opt:focus-visible { background: var(--surface); }
.phonef__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.phonef__opt.is-active { color: var(--accent); font-weight: 600; }
.phonef__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phonef__dialcode { margin-left: auto; color: var(--text-dim); font-size: 0.85rem; }
.phonef__opt.is-active .phonef__dialcode { color: var(--accent); }
.phonef__empty { padding: 0.6rem; font-size: 0.85rem; color: var(--text-faint); text-align: center; }
@media (max-width: 900px), (pointer: coarse) {
  .phonef__opt { min-height: 44px; }
}
