/* Telas de autenticação (layouts.auth) no estilo do site www.datalav.com.br.
   Carregada depois de app.css e de datalav-fonts.css; tudo escopado em body.dl-auth
   para não vazar para o sistema. Tokens iguais aos de global.css da landing. */

.dl-auth {
  --navy-950: #060f24;
  --navy-900: #0a1a3c;
  --blue-700: #1a3da3;
  --blue-600: #225db9;
  --sky-400: #4a8ed5;
  --sky-300: #7fb0e6;
  --sky-200: #a1c0ec;
  --sky-50: #edf3fc;
  --paper: #f6f8fc;
  --ink: #0a1a3c;
  --ink-soft: #46557a;
  --ink-faint: #5a6889;
  --line: #dbe3f1;
  --signal: #2fe3a6;
  --signal-ink: #067a57;
  --font-display: 'Archivo Variable', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);

  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.dl-auth *, .dl-auth *::before, .dl-auth *::after { box-sizing: border-box; }
.dl-auth a { color: var(--blue-600); font-weight: 600; text-decoration: none; }
.dl-auth a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.dl-auth :focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; border-radius: 6px; }

/* ---- Duas colunas: lado escuro (mensagem) e lado claro (formulário) ---- */
.dl-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: 100vh; }

.dl-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  background: var(--navy-950);
  color: #fff;
}
.dl-side > * { position: relative; z-index: 1; }
.dl-rings {
  position: absolute;
  z-index: 0;
  right: -22%;
  top: 50%;
  width: min(680px, 85%);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.55;
}
.dl-rings .ring { transform-box: view-box; transform-origin: 139.42px 139.42px; animation: dl-gira 38s linear infinite; }
.dl-rings .ring:nth-child(2n) { animation-duration: 26s; animation-direction: reverse; }
.dl-rings .ring:nth-child(3n) { animation-duration: 18s; }
.dl-rings .ring:nth-child(5n) { animation-duration: 13s; animation-direction: reverse; }
@keyframes dl-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dl-rings .ring { animation: none; } }

.dl-logo { display: block; width: min(200px, 55vw); height: auto; }
.dl-msg { max-width: 30rem; }
.dl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: var(--sky-300);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dl-eyebrow::before { content: ''; width: 1.4rem; height: 2px; background: currentColor; }
.dl-msg h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  letter-spacing: -0.022em;
  line-height: 1.06;
}
.dl-msg p { margin: 1rem 0 0; color: var(--sky-200); font-size: 1.08rem; max-width: 28rem; }
.dl-side-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--sky-300); font-size: 0.9rem; }
.dl-side-foot a { color: #fff; font-weight: 500; }
.dl-side-foot a:hover { color: #fff; }

.dl-main { display: flex; align-items: center; justify-content: center; padding: clamp(1.25rem, 4vw, 3rem); }
.dl-card {
  width: 100%;
  max-width: 460px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px -40px rgba(10, 26, 60, 0.35);
}
.dl-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.dl-lede { margin: 0 0 1.6rem; color: var(--ink-soft); }

/* ---- Formulário (Bootstrap 4 por baixo) ---- */
.dl-auth .dl-field { margin-bottom: 1.05rem; }
.dl-auth .dl-label { display: block; margin: 0 0 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.dl-auth .input-group { background: transparent; flex-wrap: wrap; }
.dl-auth .input-group-text {
  min-height: 48px;
  padding: 0 0.85rem;
  border: 1px solid #c7d1e4;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: var(--ink-faint);
}
.dl-auth .input-group-text svg { width: 18px; height: 18px; }
.dl-auth .form-control {
  min-height: 48px;
  height: auto;
  padding: 0.6rem 0.85rem;
  border: 1px solid #c7d1e4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dl-auth .input-group > .form-control { border-radius: 0 10px 10px 0; }
.dl-auth .form-control::placeholder { color: #8a97b4; opacity: 1; }
.dl-auth .form-control:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(34, 93, 185, 0.18); outline: 0; }
.dl-auth .input-group:focus-within .input-group-text { border-color: var(--blue-600); }
.dl-auth .form-control.is-invalid { border-color: #c73434; background-image: none; }
.dl-auth .input-group .form-control.is-invalid ~ .invalid-feedback { flex-basis: 100%; }
.dl-auth .invalid-feedback { display: block; margin-top: 0.35rem; color: #9b2222; font-size: 0.86rem; }
.dl-auth .invalid-feedback strong { font-weight: 500; }

.dl-auth .btn {
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.dl-auth .btn:active { transform: translateY(1px); }
.dl-auth .btn-primary { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.dl-auth .btn-primary:hover, .dl-auth .btn-primary:focus { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.dl-auth .btn-primary:disabled { background: var(--blue-600); border-color: var(--blue-600); opacity: 0.7; }
.dl-auth .btn-link { color: var(--ink-soft); font-weight: 500; }
.dl-auth .btn-block { width: 100%; }

.dl-auth .alert { padding: 0.75rem 0.9rem; border: 0; border-radius: 10px; font-size: 0.95rem; }
.dl-auth .alert-success { background: #e3faf1; color: var(--signal-ink); }
.dl-auth .alert-danger { background: #fdecec; color: #9b2222; }
.dl-erro { margin: 1rem 0 0; padding: 0.75rem 0.9rem; border-radius: 10px; background: #fdecec; color: #9b2222; font-size: 0.95rem; }
.dl-erro a { color: #9b2222; text-decoration: underline; text-underline-offset: 3px; }

.dl-links { margin-top: 1.5rem; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }
.dl-links p { margin: 0.35rem 0 0; }
.dl-fino { color: var(--ink-faint); font-size: 0.82rem; }
.dl-fino a { font-weight: 500; }
.dl-parceiro { display: flex; justify-content: center; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.dl-parceiro img { height: 36px; width: auto; opacity: 0.8; }

/* ---- Modal "Fale com a gente" e toast ---- */
.dl-auth .modal-content { border: 0; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(10, 26, 60, 0.5); }
.dl-auth .modal-header { padding: 1.25rem 1.5rem 0.75rem; border-bottom: 0; }
.dl-auth .modal-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 640; font-size: 1.4rem; letter-spacing: -0.02em; }
.dl-auth .modal-body { padding: 0.5rem 1.5rem 0.75rem; }
.dl-auth .modal-body label { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.dl-auth .modal-footer { padding: 0.75rem 1.5rem 1.25rem; border-top: 0; }
.dl-auth .modal-footer .btn-primary { min-height: 44px; }
.dl-auth .toast { border: 0; border-radius: 12px; overflow: hidden; }

@media (max-width: 900px) {
  .dl-split { grid-template-columns: 1fr; min-height: auto; }
  .dl-side { gap: 1.5rem; padding: 1.25rem 1.25rem 2.25rem; }
  .dl-rings { right: -34%; top: -30%; width: 380px; transform: none; opacity: 0.35; }
  .dl-msg h1 { font-size: 1.7rem; }
  .dl-msg p { font-size: 1rem; }
  .dl-side-foot { display: none; }
  .dl-main { align-items: flex-start; padding: 0 1rem 2rem; margin-top: -1rem; }
  .dl-card { max-width: none; padding: 1.5rem 1.25rem; border-radius: 18px; }
}
