/* Login, cadastro, pagamento e obrigado — layout premium */
.auth-flow {
  --auth-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --auth-orange: #f59e0b;
  --auth-orange-dark: #d97706;
  min-height: 100vh;
  margin: 0;
  font-family: var(--auth-font);
  color: var(--color-text);
  background: #fafbfc;
  overflow-x: hidden;
}

.auth-flow__blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.auth-flow__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.auth-flow__blob--green {
  width: 420px;
  height: 420px;
  background: #86efac;
  top: -120px;
  left: -80px;
}
.auth-flow__blob--navy {
  width: 360px;
  height: 360px;
  background: #93c5fd;
  top: -60px;
  right: -100px;
  opacity: 0.35;
}
.auth-flow__blob--orange {
  width: 280px;
  height: 280px;
  background: #fcd34d;
  bottom: -80px;
  right: 8%;
  opacity: 0.45;
}

.auth-flow__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
}

.auth-flow__visual {
  display: flex;
  flex-direction: column;
  padding: 40px 48px 48px;
  background: linear-gradient(165deg, #f0fdf4 0%, #f8fafc 45%, #e8eef5 100%);
  border-right: 1px solid rgba(30, 58, 95, 0.06);
}
.auth-flow__brand img {
  max-height: 52px;
  width: auto;
}
.auth-flow__hero-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 24px;
  min-height: 260px;
  position: relative;
}
.auth-flow__hero-wrap::before {
  content: '';
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.auth-flow__hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: min(42vh, 380px);
  height: auto;
  object-fit: contain;
  background: transparent;
  animation: auth-float 6s ease-in-out infinite;
}
@keyframes auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.auth-flow__visual-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1.2;
}
.auth-flow__visual-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 420px;
}
.auth-flow__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-flow__bullets li {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  padding-left: 28px;
  position: relative;
}
.auth-flow__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%2316a34a' d='M4.5 8.5L2 6l1-1 1.5 1.5L9 2l1 1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.auth-flow__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px 24px;
  background: #fff;
}
.auth-flow__panel-inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.auth-flow--signup .auth-flow__panel-inner {
  max-width: 480px;
}
.auth-flow__head {
  margin-bottom: 28px;
}
.auth-flow__head h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}
.auth-flow__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.auth-flow .auth-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: none;
}
.auth-flow .form-group {
  margin-bottom: 18px;
}
.auth-flow .form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.auth-flow .form-control {
  border-radius: 14px;
  border: 2px solid var(--color-border);
  padding: 14px 16px;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-flow .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
  outline: none;
}
.auth-flow .btn-auth-primary {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--auth-orange) 0%, var(--auth-orange-dark) 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.auth-flow .btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}
.auth-flow .btn-auth-secondary {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.auth-flow__links {
  text-align: center;
  margin-top: 24px;
  font-size: 15px;
}
.auth-flow__links a {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration: none;
}
.auth-flow__links a:hover {
  text-decoration: underline;
}
.auth-flow__back {
  text-align: center;
  margin: 20px 0 0;
  font-size: 13px;
}
.auth-flow__back a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.auth-flow__back a:hover {
  color: var(--color-primary);
}

/* Planos no cadastro */
.auth-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.auth-plan {
  position: relative;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  background: #fff;
}
.auth-plan:has(input:checked) {
  border-color: var(--color-accent);
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.12);
}
.auth-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auth-plan strong {
  display: block;
  font-size: 14px;
  color: var(--color-primary);
}
.auth-plan span {
  font-size: 12px;
  color: var(--color-text-muted);
}
.auth-slug-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.auth-slug-row__prefix {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}
.auth-slug-row .form-control {
  flex: 1;
  min-width: 140px;
}
.auth-field-password {
  position: relative;
}
.auth-field-password .form-control {
  padding-right: 48px;
}
.auth-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.5;
  padding: 4px;
}
.auth-toggle-pw:hover {
  opacity: 1;
}
.auth-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 28px 0;
}
.auth-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: -4px 0 16px;
}

/* Obrigado / checkout */
.auth-flow--success .auth-flow__panel-inner,
.auth-flow--checkout .auth-flow__panel-inner {
  text-align: center;
  max-width: 460px;
}
.auth-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}
.auth-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 40px;
  line-height: 80px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.35);
}
.auth-steps {
  text-align: left;
  margin: 24px 0;
  padding: 20px 22px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1.65;
}
.auth-steps ol {
  margin: 12px 0 0;
  padding-left: 20px;
}
.auth-steps li + li {
  margin-top: 10px;
}
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.auth-loader {
  width: 48px;
  height: 48px;
  margin: 24px auto;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}
.auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.auth-trust span::before {
  content: '✓ ';
  color: var(--color-accent);
}

@media (max-width: 960px) {
  .auth-flow__shell {
    grid-template-columns: 1fr;
  }
  .auth-flow__visual {
    padding: 28px 24px 20px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .auth-flow__hero-wrap {
    min-height: 180px;
    padding: 8px 0 16px;
  }
  .auth-flow__hero-wrap::before {
    inset: 5% 12%;
  }
  .auth-flow__hero-img {
    max-width: 300px;
    max-height: 220px;
  }
  .auth-flow__visual-copy {
    display: none;
  }
  .auth-flow__panel {
    padding: 28px 20px 20px;
  }
  .auth-plans {
    grid-template-columns: 1fr;
  }
}
