/* ============================================================
   auth.css — Pagine di login e registrazione
   ============================================================ */

.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  display: block;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* centramento card dentro body a display:block */
.auth-body > .auth-card {
  margin: 0 auto;
  margin-bottom: 40px;
}

/* Pattern di sfondo decorativo */
.auth-body::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  top: -200px; right: -150px;
  pointer-events: none;
}
.auth-body::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
  animation: fadeIn .4s ease both;
}
.auth-card-wide { max-width: 780px; }

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 14px;
}
.auth-logo-fallback {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 13.5px;
  color: var(--ink4);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 12px;
  color: var(--ink4);
  white-space: nowrap;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink4);
}
.auth-footer a {
  color: var(--blue-500);
  font-weight: 600;
  transition: color var(--t);
}
.auth-footer a:hover { color: var(--blue-400); }

/* Sezione step registrazione */
.reg-step-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.reg-step-bar span {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  transition: background .4s;
}
.reg-step-bar span.done { background: var(--blue-500); }

/* Campo con icona */
.field-icon-wrap {
  position: relative;
}
.field-icon-wrap input {
  padding-left: 40px;
}
.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink4);
  pointer-events: none;
}

/* Password strength */
.pwd-strength {
  height: 3px;
  border-radius: 99px;
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
}
.pwd-strength-bar {
  height: 100%;
  border-radius: 99px;
  transition: width .3s, background .3s;
}

/* Success screen */
.auth-success {
  text-align: center;
  padding: 20px 0;
}
.auth-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .auth-card-wide { max-width: 100%; }
}
