/* AgroProGestão — Auth / Cadastro / Planos públicos (#0a0f1c + verde + branco) */
:root {
  --auth-dark: #0a0f1c;
  --auth-darker: #070b12;
  --auth-panel: #f8fafc;
  --auth-card: #ffffff;
  --auth-border: rgba(226, 232, 240, 0.7);
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-green: #22c55e;
  --auth-green-dark: #16a34a;
  --auth-lime: #86efac;
  --auth-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --auth-radius: 20px;
  --auth-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body.auth-page,
body.auth-split-page,
body.auth-register-page {
  font-family: var(--auth-font);
  color: var(--auth-text);
  background: var(--auth-dark);
  -webkit-font-smoothing: antialiased;
}

/* ——— Split shell (login / esqueci / cadastro) ——— */
.auth-split {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .auth-split { grid-template-columns: 1fr 1fr; }
}

.auth-split-left {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--auth-dark);
  padding: 48px clamp(28px, 4vw, 56px);
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

@media (min-width: 900px) {
  .auth-split-left { display: flex; }
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.auth-orb--1 {
  width: 280px; height: 280px;
  background: rgba(34, 197, 94, 0.22);
  top: -80px; left: -80px;
}
.auth-orb--2 {
  width: 220px; height: 220px;
  background: rgba(14, 165, 233, 0.12);
  bottom: 10%; right: -60px;
}

.auth-brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.auth-brand-row:hover { color: #fff; }

.auth-ag-badge {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0;
  box-shadow: none;
  flex-shrink: 0;
  background-image: url("../img/folha-original.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.auth-ag-badge--sm {
  width: 24px;
  height: 24px;
  border-radius: 0;
  font-size: 0;
}

.auth-split-copy {
  position: relative;
  z-index: 1;
  max-width: 440px;
}
.auth-split-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
  color: #fff;
}
.auth-split-copy p {
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.55;
}

.auth-quote {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
}
.auth-quote p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.auth-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.75rem;
  color: #64748b;
}

.auth-split-legal {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  color: #475569;
}

.auth-split-right {
  background: var(--auth-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}

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

.auth-form-card {
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  padding: clamp(28px, 4vw, 36px);
}

.auth-form-card h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--auth-text);
  margin: 0;
  line-height: 1.2;
}
.auth-form-card .auth-lead {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--auth-text);
  text-decoration: none;
}
@media (min-width: 900px) {
  .auth-mobile-brand { display: none; }
}

.auth-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 8px;
}

.auth-form-card .form-control,
.auth-form-card .form-select,
.auth-input {
  width: 100%;
  margin-top: 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--auth-text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form-card .form-control:focus,
.auth-form-card .form-select:focus,
.auth-input:focus {
  border-color: var(--auth-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.auth-field { margin-bottom: 16px; }

.auth-form-card .form-check-label {
  font-size: 0.88rem;
  color: #475569;
}
.auth-form-card .form-check-input:checked {
  background-color: var(--auth-green-dark);
  border-color: var(--auth-green-dark);
}

.auth-link {
  color: var(--auth-green-dark);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; color: #15803d; }

.btn-auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff !important;
  background: #16a34a;
  box-shadow: none;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-auth-primary:hover {
  background: #15803d;
  transform: none;
  box-shadow: none;
  color: #fff !important;
}

.btn-auth-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--auth-text);
  background: #fff;
  text-decoration: none;
}
.btn-auth-ghost:hover {
  border-color: #cbd5e1;
  color: var(--auth-text);
}

.auth-form-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--auth-muted);
}

.auth-farm-chip {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.auth-form-card .alert {
  border-radius: 12px;
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.auth-form-card .alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.auth-form-card .alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.auth-form-card .alert-success,
.auth-form-card .alert-info {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Progress (cadastro 2 passos) */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.auth-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-step-dot.is-active,
.auth-step-dot.is-done {
  border-color: var(--auth-green-dark);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.3);
}
.auth-step-line {
  width: 64px;
  height: 3px;
  background: #e2e8f0;
  margin: 0 8px;
  border-radius: 99px;
}
.auth-step-line.is-done {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.auth-step-panel[hidden] { display: none !important; }

.auth-farm-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.auth-farm-block .auth-ag-badge { margin-top: 2px; }
.auth-farm-block strong {
  display: block;
  font-size: 0.88rem;
  color: #14532d;
}
.auth-farm-block span {
  font-size: 0.75rem;
  color: #15803d;
}

.auth-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 8px 0 12px;
}

/* Legacy single-card (fallback) */
body.auth-page:not(.auth-split-page):not(.auth-register-page) {
  background: var(--auth-darker);
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 15%, rgba(14, 165, 233, 0.12), transparent 50%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-shell { width: 100%; max-width: 420px; }
.auth-card {
  background: rgba(18, 26, 43, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 32px;
  color: #f1f5f9;
}
.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: #052e16 !important;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 18px;
  text-decoration: none !important;
}

/* ——— Checkout / bloqueado (standalone) ——— */
body.auth-checkout-page,
body.auth-bloqueado-page {
  background: var(--auth-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-standalone-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(226, 232, 240, 0.6);
}
.auth-standalone-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0;
}
.auth-lead {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}
.auth-btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 13px 18px !important;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.28);
}
.auth-btn-primary:hover {
  filter: brightness(1.05);
  color: #fff !important;
}
.auth-form-card .auth-btn-primary,
.auth-form-wrap .auth-btn-primary {
  width: 100%;
}
.plan-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.credit-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}
.credit-row.total {
  border-top: 2px solid #16a34a;
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
}
#loading-mp { text-align: center; padding: 20px; color: #94a3b8; font-size: 0.875rem; }
.auth-lock-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #4ade80, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}
.auth-mini-plan {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 10px;
  border: 2px solid #e2e8f0;
  height: 100%;
}
.auth-mini-plan.is-featured {
  border-color: #16a34a;
}
.auth-mini-plan__name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.auth-mini-plan__price {
  font-size: 20px;
  font-weight: 900;
  color: #16a34a;
  letter-spacing: -0.03em;
}
.auth-mini-plan__meta {
  font-size: 10px;
  color: #94a3b8;
}

/* ——— Cadastro / Consultor: layout claro e denso ——— */
body.auth-reg-page {
  font-family: "Manrope", system-ui, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(34, 197, 94, 0.10), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(14, 116, 70, 0.06), transparent 45%),
    #f3f7f4;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.auth-reg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 32px);
  padding-top: max(14px, env(safe-area-inset-top));
  border-bottom: 1px solid #e4ebe6;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.auth-reg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.auth-reg-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.auth-reg-top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.auth-reg-top-links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: #15803d;
  text-decoration: none;
}
.auth-reg-top-links a:hover { text-decoration: underline; }
.auth-reg-top-ghost {
  color: #14532d !important;
  border: 1px solid #c5ddd0;
  background: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.auth-reg-top-ghost:hover { text-decoration: none !important; background: #f7f8f6; }
.auth-reg-top-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none !important;
}
.auth-reg-top-solid:hover {
  background: #15803d;
  text-decoration: none !important;
}

.auth-reg-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 28px) 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
@media (min-width: 960px) {
  .auth-reg-shell {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 28px;
    padding-top: 36px;
  }
}

.auth-reg-aside {
  background: #0b1c14;
  color: #f2f7f4;
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid rgba(190, 242, 200, 0.12);
  box-shadow: 0 18px 40px rgba(7, 20, 15, 0.18);
}
.auth-reg-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86efac;
}
.auth-reg-aside h1 {
  margin: 0;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #fff;
}
.auth-reg-aside-lead {
  margin: 12px 0 0;
  color: #9bb5a6;
  font-size: 0.95rem;
  line-height: 1.55;
}
.auth-reg-benefits {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.auth-reg-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d5e6db;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.auth-reg-benefits i {
  color: #4ade80;
  margin-top: 3px;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.auth-reg-aside-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(190, 242, 200, 0.12);
  font-size: 0.88rem;
  color: #9bb5a6;
}
.auth-reg-aside-note strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}
.auth-reg-aside-note a {
  color: #86efac;
  font-weight: 700;
  text-decoration: none;
}
.auth-reg-aside-note a:hover { text-decoration: underline; }

.auth-reg-main { min-width: 0; }
.auth-reg-card {
  padding: clamp(22px, 3vw, 30px) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 36px rgba(15, 35, 25, 0.08) !important;
}
.auth-reg-card h2 {
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #0f172a;
  line-height: 1.2;
}
.auth-reg-card .auth-lead {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}
.auth-hint {
  font-size: 12px !important;
  color: #94a3b8 !important;
}
.auth-label-soft {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.75rem;
}
.auth-pass {
  position: relative;
}
.auth-pass .form-control {
  padding-right: 44px;
}
.auth-eye-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.auth-eye-btn:hover {
  color: #14532d;
  background: #f0fdf4;
}
.auth-reg-trial {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  text-align: center;
  color: #166534;
}
.auth-reg-card .auth-steps { margin-bottom: 18px; }
.auth-reg-card .auth-field { margin-bottom: 12px; }
.auth-reg-card .auth-section-title { margin-top: 4px; }

@media (max-width: 959px) {
  .auth-reg-aside {
    padding: 20px 18px;
  }
  .auth-reg-aside h1 { font-size: 1.35rem; }
  .auth-reg-benefits { gap: 8px; }
  .auth-reg-benefits li { font-size: 0.85rem; }
}

/* ——— Cadastro centrado (sem painel preto) ——— */
.auth-reg-center {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 24px) 56px;
}
.auth-reg-center--wide { max-width: 640px; }

.auth-reg-intro {
  text-align: center;
  margin-bottom: 22px;
}
.auth-reg-kicker--light {
  color: #15803d !important;
  margin: 0 0 8px;
}
.auth-reg-intro h1 {
  margin: 0;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #0f172a;
}
.auth-reg-intro > p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.5;
}
.auth-reg-chips {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.auth-reg-chips li {
  font-size: 0.78rem;
  font-weight: 700;
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 6px 12px;
}

/* Esconde qualquer resto do split antigo nestas páginas */
body.auth-reg-page .auth-split-left,
body.auth-reg-page .auth-reg-aside {
  display: none !important;
}
html.auth-login-html,
html.auth-login-html body.auth-login-page {
  height: 100%;
  max-height: 100dvh;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.auth-login-page {
  display: flex;
  flex-direction: column;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.auth-login-page .auth-reg-top {
  position: relative;
  flex: 0 0 auto;
  padding: 10px clamp(16px, 4vw, 32px);
}
body.auth-login-page .auth-reg-center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 8px 20px 16px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
body.auth-login-page .auth-login-title {
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f2319;
  margin: 0 0 16px;
  line-height: 1.2;
}
body.auth-login-page .auth-reg-kicker {
  margin-bottom: 6px;
}
body.auth-login-page .auth-reg-card {
  padding: 22px 22px 18px !important;
  margin: 0;
  flex: 0 0 auto;
}
body.auth-login-page .auth-field { margin-bottom: 10px; }
body.auth-login-page .auth-form-card .form-control { padding: 10px 14px; }
body.auth-login-page .auth-pass .form-control { padding-right: 44px; }
body.auth-login-page .auth-form-footer { margin-top: 12px; }
body.auth-login-page .btn-auth-primary { padding: 12px 18px; }

body.auth-reg-page .auth-reg-shell {
  display: block;
  max-width: 640px;
  margin: 0 auto;
}
