/* Auth shell (login / setup) — visual estável, independente do CRM app shell.
   Pedido: não alterar a página de login. Tokens locais fixos abaixo. */

body.auth-page {
  --auth-blue: #035f8f;
  --auth-blue-dark: #2e485d;
  --auth-border: #e5e7eb;
  --auth-radius: 10px;
  --auth-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --auth-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  font-family: var(--auth-body);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(145deg, #eef3f9 0%, #e4ecf5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-brand-block {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-full {
  width: auto;
  max-width: 300px;
  height: auto;
  display: inline-block;
  margin-bottom: 1rem;
}

.auth-brand-name {
  font-family: var(--auth-font);
  font-weight: 800;
  font-size: 1.35rem;
  color: #1a2332;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-brand-sub {
  color: #7a8ea5;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 2rem;
}

.auth-card h1 {
  font-family: var(--auth-font);
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a2332;
  margin: 0 0 0.35rem;
}

.auth-card .lead-sub {
  color: #7a8ea5;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.auth-page .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
  font-family: var(--auth-font);
  letter-spacing: -0.01em;
}

.auth-page .form-control {
  border-radius: 8px;
  border-color: var(--auth-border);
  padding: 0.6rem 0.85rem;
  min-height: auto;
  font-size: 0.875rem;
}

.auth-page .form-control:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(41, 167, 222, 0.35);
}

.auth-page .input-group-text {
  background: #f7f9fc;
  border-color: var(--auth-border);
  border-radius: 8px 0 0 8px;
  color: #7a8ea5;
}

.auth-page .input-group .form-control {
  border-radius: 0;
}

.auth-page .input-group > .input-group-text:first-child {
  border-radius: 8px 0 0 8px;
}

.auth-page .input-group > .btn-toggle-pw {
  border-radius: 0 8px 8px 0;
  border-color: var(--auth-border);
  background: #f7f9fc;
  color: #7a8ea5;
  padding: 0.6rem 0.85rem;
}

.auth-page .input-group > .btn-toggle-pw:hover {
  color: var(--auth-blue);
  background: #eef3f9;
}

.auth-page .btn-primary {
  background: var(--auth-blue);
  border-color: var(--auth-blue);
  font-family: var(--auth-font);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  height: auto;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.12s;
}

.auth-page .btn-primary:hover {
  background: var(--auth-blue-dark);
  border-color: var(--auth-blue-dark);
  box-shadow: 0 4px 12px rgba(3, 95, 143, 0.3);
  transform: translateY(-1px);
}

.auth-page .btn-primary:active {
  transform: translateY(0);
}

.auth-page .alert {
  border-radius: 8px;
  font-size: 0.875rem;
  border: none;
  padding: 0.75rem 1rem;
}

.form-hint {
  font-size: 0.75rem;
  color: #a0aec0;
  margin-top: 0.3rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #a0aec0;
}

.auth-page :focus-visible {
  outline: 2px solid var(--auth-blue);
  outline-offset: 2px;
}

.card-max-sm {
  max-width: 480px;
}
