/**
 * Pagine login / registrazione — layout minimale, allineato alla brand Sarto Operations.
 */
:root {
  --auth-primary: #2563eb;
  --auth-primary-hover: #1d4ed8;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-card-radius: 14px;
  --auth-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

body.auth-page {
  background: #f8fafc;
  /* niente spazio riservato al menu basso / navbar */
  padding-bottom: 0 !important;
}

/* Login/registrazione: niente barra superiore né menu hamburger laterale */
body.auth-page .mobile-header,
body.auth-page .public-menu-overlay,
body.auth-page .public-menu-sidebar {
  display: none !important;
}

body.auth-page main.auth-main {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.auth-page .container-fluid.px-4.mt-3 {
  margin-top: 0.75rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.auth-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-gradient {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  padding: 1.75rem 1.25rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--auth-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.auth-brand:hover {
  color: var(--auth-primary-hover);
}

.auth-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.auth-hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--auth-primary);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.auth-hero-sub {
  font-size: 0.9rem;
  color: var(--auth-text);
  margin: 0;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.auth-card-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--auth-card-radius);
  box-shadow: var(--auth-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1.75rem 1.5rem;
}

.auth-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--auth-text);
  text-align: center;
  margin: 0 0 0.25rem;
}

.auth-card-hint {
  font-size: 0.875rem;
  color: var(--auth-muted);
  text-align: center;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

.auth-form .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-text);
  margin-bottom: 0.35rem;
}

.auth-form .form-control {
  border-radius: 10px;
  border: 1px solid var(--auth-border);
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
}

.auth-form .form-control:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-form .form-select {
  border-radius: 10px;
  border: 1px solid var(--auth-border);
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
}

.auth-form .form-select:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-btn-primary {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--auth-primary);
  color: #fff;
  margin-top: 0.25rem;
  transition: background 0.15s ease;
}

.auth-btn-primary:hover {
  background: var(--auth-primary-hover);
  color: #fff;
}

.auth-footer-note {
  font-size: 0.75rem;
  color: var(--auth-muted);
  text-align: center;
  margin: 1rem 0 0;
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--auth-muted);
}

.auth-switch a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
  color: var(--auth-primary-hover);
}

.auth-logged-actions {
  text-align: center;
}

.auth-logged-actions .btn {
  border-radius: 10px;
}

@media (min-width: 576px) {
  .auth-gradient {
    padding: 2rem 1.5rem 1.5rem;
  }

  .auth-hero-title {
    font-size: 1.5rem;
  }
}
