/**
 * Pacto DS — Modulo Auth (login + setup)
 * Estilos especificos para telas de autenticacao.
 * Depende de pacto-ds.css para tokens e componentes base.
 */

/* ========== Fullscreen centering ========== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--color-bg);
}

/* ========== Theme toggle (top-right) ========== */

.auth-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
}

/* ========== Brand mark ========== */

.auth-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
:root[data-theme="dark"] .auth-brand-mark {
  background: var(--color-accent);
  color: #0E1620;
}

/* ========== Login card ========== */

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.auth-card-header {
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.auth-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.auth-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -.3px;
  line-height: 1.2;
}

.auth-card-body {
  padding: 20px 32px 32px;
}

.auth-desc {
  font-size: 13px;
  color: var(--color-text-subtle);
  line-height: 1.55;
  margin-bottom: 22px;
}

/* ========== Flash messages ========== */

.auth-flash {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 18px;
}

.auth-flash-error {
  background: rgba(222,53,11,.08);
  color: var(--color-danger);
  border: 1px solid rgba(222,53,11,.18);
}
:root[data-theme="dark"] .auth-flash-error {
  background: rgba(255,107,91,.10);
  border-color: rgba(255,107,91,.20);
}

.auth-flash-success {
  background: rgba(0,135,90,.08);
  color: var(--color-success);
  border: 1px solid rgba(0,135,90,.18);
}
:root[data-theme="dark"] .auth-flash-success {
  background: rgba(61,220,151,.10);
  border-color: rgba(61,220,151,.20);
}

/* ========== Form overrides ========== */

.auth-form .form-row {
  margin-bottom: 16px;
}
.auth-form .form-row:last-of-type {
  margin-bottom: 0;
}

.auth-form .input-text {
  height: 42px;
  font-size: 14px;
}

.auth-submit {
  width: 100%;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 22px;
  border-radius: 8px;
  letter-spacing: .1px;
}

/* ========== Footer ========== */

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--color-text-subtle);
  letter-spacing: .1px;
}

/* ========== Responsive ========== */

@media (max-width: 480px) {
  .auth-card {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
  }
  .auth-card-header {
    padding: 22px 22px 0;
  }
  .auth-card-body {
    padding: 18px 22px 26px;
  }
  .auth-title {
    font-size: 20px;
  }
  .auth-page {
    padding: 16px 12px;
  }
}
