:root {
  --ff-green: #00ad33;
  --ff-red: #e33333;
  --ff-dark: #1f2933;
  --ff-muted: #6b7280;
  --ff-border: #e5e7eb;
  --ff-bg: #f3f4f6;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e6ffe9, #f9fafb);
  color: var(--ff-dark);
}

/* LAYOUT GERAL */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
}

/* LADO ESQUERDO */
.auth-side {
  padding: 48px 64px;
  background: linear-gradient(135deg, #00ad33, #0f9c3f, #0b7a31);
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

@media (max-width: 900px) {
  .auth-side {
    display: none;
  }
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  width: fit-content;
  font-size: 14px;
}

.logo-icon {
  font-size: 18px;
}

.logo-text {
  font-weight: 600;
}

.auth-side h1 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
}

.auth-side p {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
}

.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.icon-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #ffffff;
  margin-right: 8px;
}

/* LADO DIREITO */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px 24px;
}

@media (max-width: 480px) {
  .auth-card {
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    height: 100vh;
    overflow-y: auto;
  }
}

/* ABAS */
.auth-tabs {
  display: flex;
  background: var(--ff-bg);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 4px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.18s;
  color: var(--ff-muted);
}

.auth-tab.active {
  background: #ffffff;
  color: var(--ff-green);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* TÍTULOS / CONTEÚDO */
.auth-content {
  display: none;
}

.auth-content.active {
  display: block;
}

.auth-content h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.auth-subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ff-muted);
}

/* FORMULÁRIOS */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form label {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form input,
.auth-form select {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--ff-border);
  font-size: 14px;
  outline: none;
  transition: 0.16s;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--ff-green);
  box-shadow: 0 0 0 1px rgba(0, 173, 51, 0.14);
}

.auth-form input[type="file"] {
  padding: 6px 10px;
  font-size: 13px;
}

/* CAMPOS DE SENHA */
.password-field {
  margin-top: 4px;
}

.password-wrapper {
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--ff-border);
  padding-right: 4px;
  background: #f9fafb;
}

.password-wrapper input {
  border: none;
  flex: 1;
  background: transparent;
  padding-right: 0;
}

.toggle-password {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

/* LINHAS AUXILIARES */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
}

.checkbox input {
  width: 14px;
  height: 14px;
}

.auth-link {
  color: var(--ff-red);
  text-decoration: none;
  font-size: 12px;
}

.auth-link:hover {
  text-decoration: underline;
}

/* BOTÕES */
.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s;
}

.btn-primary {
  background: linear-gradient(135deg, #00ad33, #0f9c3f);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 173, 51, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 173, 51, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ff-dark);
  border: 1px solid var(--ff-border);
}

.btn-secondary:hover {
  background: #f3f4f6;
}

.btn-primary.hidden {
  display: none;
}

/* TEXTO AJUDA */
.auth-helper {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  color: var(--ff-muted);
}

.auth-link-btn {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--ff-red);
  font-weight: 600;
  cursor: pointer;
}

/* PASSOS DO CADASTRO */
.steps-indicator {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ff-muted);
  text-align: center;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid var(--ff-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: #ffffff;
}

.step-item.active .step-number {
  border-color: var(--ff-green);
  background: #e6ffe9;
  color: var(--ff-green);
}

.step-item.active .step-label {
  color: var(--ff-green);
  font-weight: 600;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-title {
  font-size: 13px;
  color: var(--ff-muted);
  margin: 0 0 6px;
}

.password-rules {
  font-size: 12px;
  color: var(--ff-muted);
  margin: 4px 0 0;
}

.bank-warning {
  font-size: 12px;
  color: var(--ff-red);
  margin: 2px 0 6px;
}

/* BOTÕES DOS STEPS */
.steps-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* GRID 2 COLUNAS */
.auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 480px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* TERMOS */
.terms-container {
  margin-top: 10px;
  padding: 12px 0 4px;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.terms-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.terms-checkbox a {
  color: var(--ff-red);
  font-weight: 600;
  text-decoration: none;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

/* CÓDIGO VENDEDOR */
.seller-code-toggle {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
  color: var(--ff-dark);
  text-align: left;
  cursor: pointer;
}

.seller-code-wrapper {
  margin-top: 8px;
}

.hidden {
  display: none !important;
}
.bank-autocomplete {
  position: relative;
  width: 100%;
}

.bank-autocomplete input {
  width: 100%;
}

.bank-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--ff-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  max-height: 230px;
  overflow-y: auto;
  font-size: 13px;
  z-index: 20;
  display: none;
}

.bank-suggestions.visible {
  display: block;
}

.bank-option {
  padding: 8px 10px;
  cursor: pointer;
}

.bank-option:hover {
  background: #f3f4f6;
}
.address-autocomplete {
  position: relative;
}

#endereco-input {
  width: 100%;
}
