/* Registrazione paziente - look professionale studio medico */
:root{
  --reg-bg: #ffffff;
  --reg-surface: #ffffff;
  --reg-text: #0f172a;
  --reg-muted: #475569;
  --reg-border: #e2e8f0;
  --reg-primary: #0ea5e9;
  --reg-primary-600: #0284c7;
  --reg-radius: 16px;
  --reg-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --reg-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body{
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--reg-text);
  background: var(--reg-bg);
}

#headSection{
  display: flex;
  justify-content: center;
  padding: 18px 14px 6px;
}

#logoImg{
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.08));
}

#body{
  width: 100%;
  flex: 1 1 auto;
  padding: 10px 14px 18px;
  display: flex;
  justify-content: center;
}

.reg{
  width: 100%;
  max-width: 980px;
}

.reg-hero{
  text-align: left;
  margin: 6px auto 12px;
}

.reg-eyebrow{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--reg-muted);
}

.reg-title{
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.reg-subtitle{
  margin: 6px 0 0;
  color: var(--reg-muted);
  font-size: 13px;
  line-height: 1.35;
}

.reg-card{
  margin-top: 12px;
  border: 1px solid var(--reg-border);
  background: var(--reg-surface);
  border-radius: var(--reg-radius);
  box-shadow: var(--reg-shadow);
  padding: 14px;
}

.reg-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 780px){
  .reg-title{ font-size: 28px; }
  .reg-subtitle{ font-size: 14px; }
  .reg-card{ padding: 16px; }
  .reg-grid{ grid-template-columns: 1fr 1fr; gap: 14px; }
}

.reg-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.reg-field label{
  font-weight: 700;
  font-size: 13px;
  color: var(--reg-text);
}

.reg .inputElement{
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--reg-border);
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: box-shadow .12s ease, border-color .12s ease;
}

.reg .inputElement:focus{
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

.reg .inputElement::placeholder{
  color: rgba(71, 85, 105, 0.75);
}

.reg-btn{
  margin-top: 14px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, var(--reg-primary), var(--reg-primary-600));
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--reg-shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.reg-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--reg-shadow);
  filter: saturate(1.05);
}

.reg-btn:active{
  transform: translateY(0px);
}

.reg-alt{
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
}

#accedi{
  color: var(--reg-primary-600);
  font-weight: 800;
  text-decoration: none;
}

#accedi:hover{
  text-decoration: underline;
}

.footer{
  text-align: center;
  padding: 10px 14px 16px;
  color: var(--reg-muted);
  font-size: 12px;
}

/* @author Benjamin */
.cu-page #headSection.cu-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--reg-border);
}

.cu-back{
  border: 1px solid var(--reg-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--reg-shadow-sm);
  cursor: pointer;
}

.cu-back:focus-visible{
  outline: 3px solid rgba(14, 165, 233, 0.25);
  outline-offset: 2px;
}

.cu-header-text{
  min-width: 0;
}

.cu-page .reg-header-title{
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--reg-text);
  line-height: 1.1;
}

.cu-logo{
  margin-left: auto;
  width: 42px;
  height: 42px;
  max-width: none;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--reg-border);
  padding: 6px;
  background: #fff;
  box-shadow: var(--reg-shadow-sm);
}