/* Registrazione / recupero password nell'app */
html.app-embed {
  overflow-x: hidden;
}

html.app-embed body {
  padding: 10px 12px 16px !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  max-width: 100%;
  background: #f1f5f9 !important;
  box-sizing: border-box;
}

html.app-embed body > p[align="center"] {
  display: none !important;
}

html.app-embed body > table,
html.app-embed #frmRegistrazione table {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

html.app-embed body > table {
  border: none !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  background: #fff;
}

html.app-embed body > table > tbody > tr > td[bgcolor] {
  font-size: 0.95rem !important;
  padding: 12px 10px !important;
}

html.app-embed body > table > tbody > tr > td[colspan] {
  padding: 12px 10px !important;
  box-sizing: border-box;
}

html.app-embed #frmRegistrazione table {
  border: 0 !important;
}

html.app-embed #frmRegistrazione table tr {
  display: block;
  margin-bottom: 4px;
}

html.app-embed #frmRegistrazione table td {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
  padding: 0 !important;
  box-sizing: border-box;
}

html.app-embed #frmRegistrazione table td[colspan="2"] {
  padding: 8px 4px !important;
}

html.app-embed #frmRegistrazione table td:first-child:not([colspan]) {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #1e40af !important;
  padding: 10px 0 4px !important;
}

html.app-embed #frmRegistrazione input[type="text"],
html.app-embed #frmRegistrazione input[type="password"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  font-size: 16px !important;
  padding: 0 12px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  color: #334155 !important;
}

html.app-embed #frmRegistrazione .css-label {
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
  display: inline;
  word-break: break-word;
}

html.app-embed #frmRegistrazione input[type="checkbox"].css-checkbox {
  position: static !important;
  z-index: auto !important;
  left: auto !important;
  clip: auto !important;
  overflow: visible !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin: 2px 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  flex-shrink: 0;
  accent-color: #1e40af;
  vertical-align: top;
}

html.app-embed #frmRegistrazione input[type="checkbox"].css-checkbox + label.css-label {
  padding-left: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.45 !important;
  background-image: none !important;
  display: inline !important;
  font-size: 0.82rem !important;
  vertical-align: top;
}

html.app-embed #frmRegistrazione tr td[colspan="2"][align="center"] {
  text-align: left !important;
  padding: 10px 6px !important;
  overflow: visible !important;
}

html.app-embed #frmRegistrazione .reg-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  max-width: 100%;
  overflow: visible;
}

html.app-embed #frmRegistrazione .reg-check-row label.css-label {
  flex: 1;
  min-width: 0;
}

html.app-embed #frmRegistrazione tr td[colspan="2"][align="center"] br {
  display: block;
  content: "";
  margin-top: 12px;
}

html.app-embed #frmRegistrazione tr td[colspan="2"][align="center"] br + br {
  margin-top: 0;
}

html.app-embed #frmRegistrazione h4 {
  font-size: 0.9rem !important;
  padding: 0 8px;
  line-height: 1.4;
}

html.app-embed #frmRegistrazione img {
  max-width: 100%;
  height: auto;
}

html.app-embed #cmdConferma,
html.app-embed #cmdLogin {
  max-width: 200px;
  width: auto;
}

html.app-embed body > div[align="center"],
html.app-embed #table4,
html.app-embed .footer {
  display: none !important;
}
