:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #0b1220;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #22c55e;
  --primary-700: #16a34a;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% -10%, rgba(34, 197, 94, 0.18), transparent),
              radial-gradient(900px 500px at 85% 15%, rgba(59, 130, 246, 0.14), transparent),
              var(--bg);
  color: var(--text);
}

.page { position: relative; z-index: 1; }

/* Fundo animado com blobs */
.bg-anim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}
.orb {
  position: absolute;
  width: 60vw;
  height: 60vw;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.orb-green {
  left: -10%;
  top: -20%;
  background: radial-gradient(closest-side, rgba(34,197,94,0.35), transparent 65%);
  animation: float1 22s ease-in-out infinite;
}
.orb-blue {
  right: -20%;
  top: 8%;
  background: radial-gradient(closest-side, rgba(59,130,246,0.28), transparent 70%);
  animation: float2 26s ease-in-out infinite;
}
.orb-purple {
  left: 30%;
  bottom: -25%;
  background: radial-gradient(closest-side, rgba(168,85,247,0.25), transparent 70%);
  animation: float3 28s ease-in-out infinite;
}

@keyframes float1 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  25%  { transform: translate3d(3%,4%,0) scale(1.08); }
  50%  { transform: translate3d(6%,-3%,0) scale(0.98); }
  75%  { transform: translate3d(2%,3%,0) scale(1.05); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes float2 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  25%  { transform: translate3d(-4%,2%,0) scale(1.06); }
  50%  { transform: translate3d(-2%,-4%,0) scale(0.97); }
  75%  { transform: translate3d(-5%,1%,0) scale(1.03); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes float3 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  25%  { transform: translate3d(2%,-3%,0) scale(1.04); }
  50%  { transform: translate3d(-3%,3%,0) scale(0.99); }
  75%  { transform: translate3d(4%,-2%,0) scale(1.07); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

/* Ícones temáticos animados (carro, documento, leilão) */
.bg-icons {
  position: fixed;
  inset: 0;
  z-index: 0; /* atrás do conteúdo, junto aos blobs */
  pointer-events: none;
  will-change: transform;
}
.icon {
  position: absolute;
  width: clamp(140px, 18vw, 220px);
  opacity: 0.14;
  animation: iconFloat 28s ease-in-out infinite;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.35));
}
.icon svg { display: block; }
.icon path, .icon rect, .icon polygon, .icon circle { fill: rgba(255,255,255,0.7); }

.icon-car { left: 6%; top: 18%; animation-duration: 30s; }
.icon-doc { right: 8%; top: 40%; animation-duration: 26s; }
.icon-auction { left: 58%; bottom: 8%; animation-duration: 32s; }

@keyframes iconFloat {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  25%  { transform: translate3d(8px,-6px,0) rotate(1.5deg) scale(1.02); }
  50%  { transform: translate3d(-10px,6px,0) rotate(-1.2deg) scale(0.98); }
  75%  { transform: translate3d(6px,-4px,0) rotate(1deg) scale(1.03); }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: 1100px;
  align-items: stretch; /* iguala altura das colunas */
  justify-self: center; /* centralizar no viewport */
  margin: 0 auto; /* reforça centralização horizontal */
  grid-template-areas:
    "auth"
    "features";
}

@media (min-width: 920px) {
  .layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "features auth"; /* features à esquerda */
    align-items: stretch;
    justify-items: center; /* centraliza os itens em cada coluna */
  }
}

.auth-card { grid-area: auth; justify-self: center; max-width: 440px; }
.features { grid-area: features; justify-self: center; max-width: 640px; }

/* Itens ocupam a altura total da linha (máximo conteúdo) */
.auth-card,
.features {
  height: 100%;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(96,165,250,0.10), rgba(167,139,250,0.10), rgba(52,211,153,0.10)), var(--card);
  background-size: 300% 300%;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 28px;
  animation: sectionGradientMove 18s ease infinite;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}

.title { font-size: 24px; margin: 0 0 8px; }
.subtitle { margin: 0 0 22px; color: var(--muted); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field.horizontal { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }

label { font-weight: 500; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  background: #0a1020;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text);
}

input::placeholder { color: #6b7280; }

.hint { font-size: 12px; color: var(--muted); }
.error { font-size: 12px; color: var(--danger); min-height: 16px; }

.submit {
  margin-top: 6px;
  width: 100%;
  background: var(--primary);
  color: #04120a;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.submit:hover { background: var(--primary-700); }

.feedback {
  margin-top: 14px;
  font-weight: 600;
}

.alt-action {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
}
.link { color: #60a5fa; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Suporte e recursos */
.support { margin-top: 12px; color: var(--muted); text-align: center; }
.support a { color: #86efac; text-decoration: none; }
.support a:hover { text-decoration: underline; }

.features {
  margin-top: 0;
  width: 100%;
  max-width: none;
  background: linear-gradient(135deg, rgba(96,165,250,0.10), rgba(167,139,250,0.10), rgba(52,211,153,0.10)), var(--card);
  background-size: 300% 300%;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 20px;
  animation: sectionGradientMove 18s ease infinite;
}
.features-title { margin: 0 0 12px; font-size: 18px; }
.features-list { margin: 0; padding-left: 18px; color: var(--muted); }
.features-list li { margin-bottom: 8px; }

@keyframes sectionGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.credit { margin-top: 12px; color: var(--muted); font-size: 12px; text-align: right; }