
/* ===== Páginas de autenticação (Home, Login, Register) ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: var(--fundo-card);
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  box-shadow: var(--sombra-lg);
  padding: 32px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--texto-terciario);
  text-decoration: none;
}

.auth-back:hover {
  color: var(--destaque);
}

.auth-page-logo {
  display: block;
  margin: 8px auto 20px;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: min(60vh, 360px);
  min-height: 180px;
  object-fit: contain;
  padding: 18px 22px;
  border-radius: var(--raio);
  /* Fundo escuro: texto branco da logo transparente continua legível no cartão claro */
  background: var(--sidebar-bg);
  box-sizing: border-box;
}

.auth-logo {
  width: 64px;
  height: 64px;
  color: #10b981;
  margin-bottom: 12px;
}

.auth-title {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--texto-principal);
}

.auth-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--texto-terciario);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-row {
  display: flex;
  gap: 12px;
}

.auth-row .auth-field {
  flex: 1;
  min-width: 0;
}

.auth-hint {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--texto-terciario);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--texto-secundario);
}

.auth-field input {
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--borda);
  border-radius: var(--raio-sm);
  background: var(--fundo-card);
  color: var(--texto-principal);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--destaque);
}

.auth-erro {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--erro);
  background: rgba(220, 38, 38, 0.1);
  border-radius: var(--raio-sm);
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-buttons .btn-auth {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--raio-sm);
  cursor: pointer;
  border: none;
}

.auth-buttons .btn-primary {
  background: var(--destaque);
  color: white;
}

.auth-buttons .btn-primary:hover {
  background: var(--destaque-hover);
}

.auth-buttons .btn-secondary {
  background: transparent;
  color: var(--destaque);
  border: 1px solid var(--destaque);
}

.auth-buttons .btn-secondary:hover {
  background: var(--destaque-muted);
}

.auth-form .btn-auth {
  margin-top: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--raio-sm);
  border: none;
  cursor: pointer;
  background: var(--destaque);
  color: white;
}

.auth-form .btn-auth:hover:not(:disabled) {
  background: var(--destaque-hover);
}

.auth-form .btn-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-foot {
  margin: 20px 0 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--texto-terciario);
}

.auth-foot--legal {
  margin-top: 12px;
  font-size: 0.8125rem;
}

.auth-foot a {
  color: var(--destaque);
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
}

/* Páginas legais (termos / privacidade) */
.legal-container {
  max-width: 720px;
}

.legal-card h1 {
  margin: 0 0 12px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--texto-principal);
}

.legal-card h2 {
  margin: 28px 0 10px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--texto-principal);
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-prose {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--texto-secundario);
}

.legal-prose ul {
  margin: 8px 0 0 1.2rem;
  padding: 0;
}

.legal-prose li {
  margin-bottom: 6px;
}

.legal-aviso {
  margin: 20px 0 0 0;
  padding: 14px 16px;
  border-radius: var(--raio-sm);
  border: 1px solid var(--borda);
  background: var(--fundo-resumo-dia);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--texto-secundario);
}

.legal-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--borda);
  font-size: 0.875rem;
  color: var(--texto-terciario);
}

.legal-foot a {
  color: var(--destaque);
  text-decoration: none;
}

.legal-foot a:hover {
  text-decoration: underline;
}