/* Login / registrazione B2B — grafica v1 (split + brand tiles) */
.auth-body {
  margin: 0;
  min-height: 100vh;
  color: #f4f6fb;
  background: #07090f;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}
.auth-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.auth-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(225, 29, 46, .22), transparent 55%),
    radial-gradient(700px 480px at 78% 72%, rgba(47, 111, 237, .28), transparent 60%),
    radial-gradient(500px 360px at 55% 8%, rgba(154, 240, 46, .08), transparent 50%),
    linear-gradient(160deg, #101522 0%, #07090f 55%, #0b1020 100%);
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.03) 50%, transparent 60%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 14px,
      rgba(255,255,255,.015) 14px 15px
    );
  animation: auth-drift 18s linear infinite;
  pointer-events: none;
}
@keyframes auth-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-40px, 24px, 0); }
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c5cbd8;
  font-weight: 700;
}
.auth-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d2e;
  box-shadow: 0 0 0 4px rgba(225, 29, 46, .18);
}
.auth-hero h1 {
  margin: 28px 0 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 11ch;
  font-weight: 800;
}
.auth-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #fff 10%, #9ec1ff 55%, #ff8b96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-hero-lede {
  margin: 0;
  max-width: 38ch;
  color: #aeb6c8;
  font-size: 1.05rem;
  line-height: 1.55;
}
.auth-brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}
.auth-brand-tile {
  display: block;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px 14px 14px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.auth-brand-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  color: inherit;
}
.auth-brand-tile:focus-visible {
  outline: 2px solid #9ec1ff;
  outline-offset: 3px;
}
.auth-partners {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.auth-partners-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b93a7;
}
.auth-partners-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.auth-partners-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 88px;
  height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  overflow: hidden;
}
.auth-partners-row img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 560px) {
  .auth-partners-row { gap: 8px 10px; }
  .auth-partners-row li { width: 72px; height: 34px; padding: 6px 8px; }
}
.auth-brand-tile img {
  width: auto;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
.auth-brand-tile strong {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #e8ecf5;
}
.auth-brand-tile small {
  display: block;
  margin-top: 4px;
  color: #8b93a7;
  font-size: 11px;
  line-height: 1.35;
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 40px);
  background:
    radial-gradient(500px 280px at 80% 0%, rgba(47, 111, 237, .28), transparent 60%),
    #0a0d15;
  overflow: auto;
}
.auth-card {
  width: min(420px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(28,33,48,.92), rgba(14,17,26,.94));
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  padding: 28px 26px 24px;
}
.auth-card-wide { width: min(560px, 100%); }
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  color: #fff;
}
.auth-card .lede {
  margin: 0 0 18px;
  color: #8b93a7;
  font-size: 14px;
  line-height: 1.45;
}
.auth-card .alert {
  margin: 0 0 14px;
}
.auth-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #c9d0de;
  letter-spacing: 0;
  text-transform: none;
}
.auth-card input,
.auth-card select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,9,15,.65);
  color: #fff;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}
.auth-card input:focus,
.auth-card select:focus {
  border-color: rgba(47,111,237,.7);
  box-shadow: 0 0 0 3px rgba(47,111,237,.18);
}
.auth-card .btn-primary {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, #1f5dac, #2f6fed);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47,111,237,.28);
}
.auth-card .btn-primary:hover { filter: brightness(1.06); }
.auth-captcha { margin: 4px 0 14px; }
.auth-captcha .g-recaptcha { transform-origin: 0 0; }
.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  color: #8f98ab;
  font-size: 13px;
}
.auth-switch a {
  color: #9ec1ff;
  font-weight: 700;
  text-decoration: underline;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.auth-grid .full { grid-column: 1 / -1; }
.auth-card .field-hint {
  display: block;
  margin-top: 6px;
  min-height: 1.1em;
  font-weight: 500;
  font-size: 12px;
  color: #9aa3b5;
}
.auth-card .field-hint.is-ok { color: #7dcea0; }
.auth-card .field-hint.is-err { color: #f5a8a8; }
.auth-card .file-field small {
  display: block;
  margin-top: 6px;
  color: #9aa3b5;
  font-weight: 500;
  font-size: 12px;
}
.auth-card .file-field input[type="file"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,9,15,.65);
  color: #d7dde8;
  padding: 10px 12px;
}
.auth-card .check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 12px !important;
  color: #a9b1c0;
  line-height: 1.4;
}
.auth-card .check-row input {
  width: auto !important;
  margin-top: 2px;
}
@media (max-width: 920px) {
  .auth-stage { grid-template-columns: 1fr; }
  .auth-hero { min-height: auto; padding-bottom: 28px; }
  .auth-hero h1 { max-width: none; }
  .auth-brands { margin-top: 28px; }
  .auth-panel { padding-top: 8px; padding-bottom: 36px; }
}
@media (max-width: 560px) {
  .auth-brands { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-brand-tile img { height: 48px; }
}
