/* ============================================================
   AtendExpress — tela de login (split: formulário + marca).
   Usa os tokens de app.css. Claro default + dark via toggle.
   ============================================================ */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---------- Lado do formulário ---------- */
.auth__form {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--bg);
}

.auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-card__title { font-size: var(--t-xl); margin-bottom: var(--space-2); }
.auth-card__sub { color: var(--text-soft); margin: 0 0 var(--space-6); }

.auth__foot {
  text-align: center;
  color: var(--text-soft);
  font-size: var(--t-sm);
}

.auth__copy {
  text-align: center;
  color: var(--text-hint);
  font-size: var(--t-xs);
  margin-top: var(--space-6);
}

/* ---------- Lado da marca (aside) ---------- */
.auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-10);
  background: var(--brand);
  color: var(--brand-contrast);
  overflow: hidden;
}
[data-theme="dark"] .auth__aside {
  background: linear-gradient(160deg, var(--surface-2), var(--surface-inset));
  color: var(--text);
  border-left: 1px solid var(--border);
}

.auth__aside-title {
  font-size: var(--t-2xl);
  color: inherit;
  max-width: 12ch;
}
.auth__aside-text { color: inherit; opacity: 0.92; max-width: 34ch; }

/* Mock de conversa do WhatsApp (prova visual do produto) */
.chat {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
[data-theme="dark"] .chat { box-shadow: var(--shadow-md), var(--glow); }

.chat__head {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--t-xs); color: var(--text-soft);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--border);
}
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.bubble {
  font-size: var(--t-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  max-width: 85%;
}
.bubble--in  { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: var(--radius-sm); }
.bubble--out { align-self: flex-end; background: var(--brand-soft); color: var(--brand); border-bottom-right-radius: var(--radius-sm); }

.chat__ia {
  display: inline-flex; align-items: center; gap: var(--space-2);
  align-self: flex-end;
  font-size: var(--t-2xs); color: var(--info);
}

/* ---------- Responsivo: some o aside no mobile ---------- */
@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
}

/* ---------- Onboarding / cadastro ---------- */
.field__hint { display: block; font-size: var(--t-xs); color: var(--text-hint); margin-top: 6px; }
.field__hint strong { color: var(--brand); font-weight: var(--w-medium); }

.auth__alt { text-align: center; font-size: var(--t-sm); color: var(--text-soft); margin: var(--space-4) 0 0; }
.auth__alt a { color: var(--brand); font-weight: var(--w-medium); }

/* Página de sucesso (centralizada, sem split) */
.auth--center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-5); background: var(--bg); }
.auth-card--ok { max-width: 440px; width: 100%; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); box-shadow: var(--shadow-md); }
.ok-badge { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: var(--space-4); }
.auth-card--ok .auth-card__title { justify-content: center; }
.ok-url { background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: var(--space-4); margin: var(--space-5) 0; }
.ok-url__label { display: block; font-size: var(--t-xs); color: var(--text-hint); margin-bottom: 6px; }
.ok-url__value { font-family: var(--font-body); font-size: var(--t-md); font-weight: var(--w-medium); color: var(--brand); word-break: break-all; }
.auth-card--ok .btn { margin-top: var(--space-2); }
.auth-card--ok .auth__copy { margin-top: var(--space-4); }
