/* Fundo ambiente com blobs discretos, como no app em produção */
.app-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 62% 38% 55% 45% / 45% 55% 40% 60%;
  filter: blur(38px);
  opacity: 0.7;
  animation: blob-float 18s ease-in-out infinite;
}

.blob-1 {
  top: -8%;
  left: -6%;
  width: 320px;
  height: 320px;
  background: #d6d6c6;
  animation-delay: 0s;
}

.blob-2 {
  bottom: -12%;
  right: -8%;
  width: 380px;
  height: 380px;
  background: #dcdccb;
  animation-delay: -6s;
}

.blob-3 {
  top: 40%;
  left: 70%;
  width: 260px;
  height: 260px;
  background: #cfd0bb;
  animation-delay: -11s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 4%) scale(1.06); }
}

/* Shell da página */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4);
}

.app-topbar {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-right: 60px;
}

.link-muted {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-decoration: underline;
}

.link-muted:hover {
  color: var(--color-ink);
}

/* Cartão principal (dialog) */
.dialog-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dialog);
  padding: var(--space-5);
}

.dialog-card--wide {
  max-width: 560px;
}

/* Tipografia comum da tela */
.eyebrow {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.heading {
  margin: 0 0 var(--space-2);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.highlight {
  background: var(--color-lime);
  color: var(--color-lime-ink);
  font-style: italic;
  padding: 0 4px;
}

.brand-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  z-index: 2;
}

.brand-badge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lede {
  margin: 0 0 var(--space-5);
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Botões compartilhados */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  background: var(--color-lime);
  color: var(--color-lime-ink);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.1s ease;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--color-muted);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-danger);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-danger:hover {
  border-color: var(--color-danger);
}

.form-status {
  min-height: 20px;
  margin-top: var(--space-3);
  font-size: 0.85rem;
}

.form-status--pending {
  color: var(--color-muted);
}

.form-status--error {
  color: var(--color-danger);
}

.form-status--success {
  color: var(--color-ink);
}
