/* ============================================================
   Componente compartilhado: card de login dividido (split panel)
   Usado na tela de login do cliente (frontend), mantendo a barra
   de topo. As mesmas classes existem no CSS do admin.
   ============================================================ */

/* Centraliza o card na área de conteúdo, abaixo da navbar do topo.
   O !important cancela o min-height inline que o script global aplica. */
body.gtd-cust-login .page-content {
  min-height: calc(100vh - 90px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

.gtd-login-split {
  display: flex;
  width: 100%;
  max-width: 1140px;
  min-height: 580px;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(15, 30, 60, 0.22);
}

/* ---------- Painel esquerdo ---------- */
.gtd-login-left {
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;
  background-color: #0a1b3a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.4rem 2.6rem;
  overflow: hidden;
}
.gtd-login-left-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6,16,38,0.78) 0%, rgba(8,22,52,0.40) 45%, rgba(8,24,58,0.32) 100%);
  z-index: 0;
}
.gtd-login-left-top,
.gtd-login-promo { position: relative; z-index: 1; }

.gtd-login-left-logo { width: 215px; max-width: 78%; height: auto; display: block; }

.gtd-login-promo {
  background: rgba(8, 20, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  max-width: 420px;
  box-shadow: 0 18px 40px rgba(2, 10, 28, 0.35);
}
.gtd-promo-slides { position: relative; min-height: 60px; margin-bottom: .9rem; }
.gtd-promo-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(-16px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.gtd-promo-slide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.gtd-login-promo-title { color: #fff; font-size: 1.02rem; font-weight: 700; margin: 0 0 .3rem; }
.gtd-login-promo-text { color: rgba(231, 240, 255, 0.82); font-size: .78rem; margin: 0; }
.gtd-login-dots { display: flex; gap: 7px; }
.gtd-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); border: 0; padding: 0; appearance: none; cursor: pointer; transition: all .25s; }
.gtd-dot:hover { background: rgba(255, 255, 255, 0.6); }
.gtd-dot.is-active { width: 20px; background: #ffffff; }

/* ---------- Painel direito ---------- */
.gtd-login-right {
  flex: 0 0 50%;
  max-width: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}
.gtd-login-form-wrap { width: 100%; max-width: 100%; }

.gtd-login-title { font-size: 1.5rem; font-weight: 700; color: #1e2a3a; margin: 0 0 .3rem; }
.gtd-login-subtitle { color: #97a4b4; font-size: .88rem; margin: 0 0 1.6rem; }

.gtd-login-alert {
  display: flex; align-items: center;
  background: #fdecec; color: #c0392b;
  border: 1px solid #f5c6cb; border-radius: 10px;
  padding: .6rem .8rem; font-size: .88rem; margin-bottom: 1rem;
}
.gtd-login-alert--ok { background: #e8f7ee; color: #1e7e45; border-color: #bfe6cd; }

.gtd-field {
  position: relative;
  display: flex; align-items: center;
  background: #f4f6fa;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  margin-bottom: .85rem;
  transition: border-color .15s, box-shadow .15s;
}
.gtd-field:focus-within { border-color: #2f74e6; box-shadow: 0 0 0 3px rgba(47, 116, 230, 0.12); background: #fff; }
.gtd-field-icon { display: flex; align-items: center; justify-content: center; width: 44px; color: #9aa7b8; flex: 0 0 44px; }
.gtd-field-input {
  flex: 1 1 auto; border: 0; background: transparent; outline: none;
  height: 44px; padding: 0 .4rem 0 0; font-size: .9rem; color: #2f3d4f; width: 100%;
}
.gtd-field-input::placeholder { color: #aab6c4; }
.gtd-field-input.is-invalid { color: #c0392b; }
.gtd-field-eye { border: 0; background: transparent; color: #9aa7b8; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gtd-field-eye:hover { color: #5b6b7d; }

.gtd-login-row { display: flex; align-items: center; justify-content: space-between; margin: .2rem 0 1.3rem; }
.gtd-check { display: flex; align-items: center; gap: .5rem; margin: 0; color: #5b6b7d; font-size: .85rem; font-weight: 500; cursor: pointer; }
.gtd-check input { width: 15px; height: 15px; accent-color: #2f74e6; cursor: pointer; }
.gtd-login-link { color: #2f74e6; font-size: .85rem; font-weight: 600; }
.gtd-login-link:hover { color: #1d5bc4; text-decoration: none; }

.gtd-login-submit {
  width: 100%; height: 44px; border: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer;
  background: linear-gradient(90deg, #2f74e6 0%, #2560cf 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 207, 0.28);
  transition: filter .15s;
}
.gtd-login-submit:hover { filter: brightness(.96); color: #fff; }

.gtd-login-divider { display: flex; align-items: center; text-align: center; color: #9aa7b8; font-size: .82rem; margin: 1.3rem 0 1rem; }
.gtd-login-divider::before, .gtd-login-divider::after { content: ""; flex: 1; height: 1px; background: #e6ebf2; }
.gtd-login-divider span { padding: 0 .9rem; }

.gtd-social-row { display: flex; gap: .8rem; }
.gtd-social-btn {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: .55rem;
  height: 42px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff;
  color: #3a4658; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .15s, border-color .15s;
}
.gtd-social-btn:hover { background: #f7f9fc; border-color: #d3dcea; }

.gtd-login-foot { text-align: center; margin-top: 1.1rem; color: #97a4b4; font-size: .88rem; }
.gtd-recaptcha-wrap { margin-bottom: 1rem; }

/* ---------- Telas de redefinição de senha ---------- */
.gtd-auth-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 1.1rem;
}
.gtd-auth-badge--key  { background: #e7f0fe; color: #2f74e6; }
.gtd-auth-badge--ok   { background: #e6f7ec; color: #16a34a; border-radius: 50%; }
.gtd-auth-badge--lock { background: #e7f0fe; color: #2f74e6; }

.gtd-auth-email { color: #2f74e6; font-weight: 700; font-size: .98rem; margin: 0 0 .85rem; word-break: break-all; }
.gtd-auth-hint  { color: #97a4b4; font-size: .85rem; line-height: 1.5; margin: 0 0 1.4rem; }

a.gtd-login-submit, .gtd-login-submit--link { text-decoration: none; }
a.gtd-login-submit:hover { color: #fff; filter: brightness(.96); }

.gtd-auth-resend {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  margin-top: 1rem; color: #97a4b4; font-size: .85rem;
}
.gtd-auth-resend .gtd-login-link { background: none; border: 0; padding: 0; cursor: pointer; }

.gtd-login-back { display: inline-flex; align-items: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
  .gtd-login-split { min-height: auto; max-width: 440px; flex-direction: column; }
  .gtd-login-left { display: none; }
  .gtd-login-right { flex: 1 1 100%; max-width: 100%; padding: 2rem 1.5rem; }
}
