/* Equatorial Agência Virtual — Pagamento Simplificado (pixel-perfect) */

body.eq-auth {
  font-family: var(--eq-font);
  background: #fff;
  color: #313131;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAVBAR ──────────────────────────────────────────── */
.eq-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #497BFD;
  border-radius: 9999px;
  padding: 0 40px;
  height: 64px;
  margin: 24px 40px 0;
}
.eq-navbar-logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.eq-navbar-logo img {
  height: 32px;
  width: auto;
}
.eq-navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.eq-navbar-menu li a,
.eq-navbar-menu li button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #fff;
  font: 600 16px/1 var(--eq-font);
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.eq-navbar-menu li a:hover,
.eq-navbar-menu li button:hover { opacity: 0.85; }
.eq-navbar-login {
  background: transparent !important;
  border: 1px solid #fff !important;
  border-radius: 9999px !important;
  height: 40px;
  padding: 0 24px !important;
  font-weight: 600 !important;
}

/* ── MAIN CONTENT ────────────────────────────────────── */
.eq-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 60px;
}

.eq-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #313131;
  font: 400 16px/1 var(--eq-font);
  text-decoration: none;
  margin-bottom: 48px;
}
.eq-voltar:hover { opacity: 0.7; }
.eq-voltar svg { width: 16px; height: 16px; }

.eq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .eq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Left column */
.eq-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eq-breadcrumb {
  margin: 0;
  font: 400 16px/24px var(--eq-font);
  color: #313131;
}
.eq-title {
  margin: 0;
  font: 600 40px/48px var(--eq-font);
  color: #313131;
  letter-spacing: -0.01em;
}
.eq-description {
  margin: 0;
  font: 400 16px/24px var(--eq-font);
  color: #606060;
}

/* Right column — form */
.eq-form-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 520px;
}

/* Field group */
.eq-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.eq-field-label {
  font: 400 16px/24px var(--eq-font);
  color: #313131;
  margin: 0;
}
.eq-field-input,
.eq-field-select {
  width: 100%;
  height: 66px;
  padding: 20px 16px;
  border: 1px solid #c8c8c8;
  border-radius: 16px;
  background: #fff;
  font: 400 16px/24px var(--eq-font);
  color: #313131;
  outline: none;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
.eq-field-input:focus,
.eq-field-select:focus {
  border-color: #497BFD;
}
.eq-field-input::placeholder {
  color: #999;
}
.eq-field-select {
  height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23313131' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.eq-field-link {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  color: #497BFD;
  font: 600 14px/20px var(--eq-font);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
.eq-field-link:hover { opacity: 0.8; }

.eq-field-error {
  color: #e60f56;
  font-size: 12px;
  margin: 0;
}

/* Continuar button */
.eq-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 64px;
  padding: 20px 24px;
  background: #497BFD;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font: 600 16px/1 var(--eq-font);
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}
.eq-btn-primary:hover { background: #3a6ae0; }
.eq-btn-primary:disabled,
.eq-btn-primary.is-disabled {
  background: #c8c8c8;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}
.eq-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 24px;
  background: #fff;
  color: #313131;
  border: 1px solid #c8c8c8;
  border-radius: 9999px;
  font: 600 14px/1 var(--eq-font);
  cursor: pointer;
}
.eq-btn-ghost:hover { background: #f5f5f5; }
.eq-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Password field */
.eq-input-wrap {
  position: relative;
  width: 100%;
}
.eq-input-wrap .eq-field-input { padding-right: 48px; }
.eq-eye-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  width: 24px;
  height: 24px;
}
.eq-eye-btn:hover { opacity: 1; }
.eq-eye-btn img { width: 24px; height: 24px; }

/* ── FOOTER ──────────────────────────────────────────── */
.eq-footer {
  background: #497BFD;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.eq-footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.eq-footer-copy {
  color: #fff;
  font: 400 14px/1 var(--eq-font);
  margin: 0;
}

/* ── FUNNEL STEPS (reuse from old design) ────────────── */
.sb-step { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.sb-step-lead {
  margin: 0;
  color: #606060;
  font: 400 14px/1.5 var(--eq-font);
}
.sb-step-h4 {
  margin: 0;
  font: 600 18px/1.35 var(--eq-font);
  color: #313131;
}
.sb-valor {
  margin: 0;
  font: 700 28px/1.2 var(--eq-font);
  color: #313131;
  letter-spacing: -0.03em;
}
.sb-otp-addr { margin: 0; font: 600 14px/1.4 var(--eq-font); color: #497BFD; }
.sb-otp-expire { margin: 0; font: 400 13px/1.4 var(--eq-font); color: #606060; }
.sb-otp-expire.is-expired { color: #e60f56; }
.sb-otp-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sb-otp-actions .eq-field-link { margin: 0; }

.sb-alert {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff5f5;
  border: 1px solid #fecdd3;
  color: #e60f56;
  font: 500 14px/1.4 var(--eq-font);
  margin-bottom: 16px;
}

.channel-list, .pick-list, .faturas-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.channel-item, .pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #c8c8c8;
  border-radius: 16px;
  cursor: pointer;
  background: #fff;
  font: 500 14px/1.4 var(--eq-font);
  color: #313131;
}
.channel-item:hover, .pick-item:hover { border-color: #497BFD; background: #f8faff; }
.channel-item input { accent-color: #497BFD; }

/* Loading overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(255,255,255,0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lds-spin {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e5e5;
  border-top-color: #497BFD;
  border-radius: 50%;
  animation: eq-spin .7s linear infinite;
}
@keyframes eq-spin { to { transform: rotate(360deg); } }
#loading-text { margin: 0; color: #606060; font: 500 14px/1 var(--eq-font); }
.loading-skip {
  margin-top: 8px;
  border: 0;
  background: none;
  color: #497BFD;
  font: 600 14px/1 var(--eq-font);
  cursor: pointer;
}
.fatura-valor-destaque { font: 700 28px/1.2 var(--eq-font); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .eq-navbar {
    margin: 12px 16px 0;
    padding: 0 16px;
    height: 56px;
  }
  .eq-navbar-menu { display: none; }
  .eq-main { padding: 24px 16px 40px; }
  .eq-title { font-size: 28px; line-height: 36px; }
  .eq-btn-primary { width: 100%; }
  .eq-footer { padding: 24px 16px; flex-direction: column; gap: 16px; text-align: center; }
}
