/* ═══════════════════════════════════════════════════════════════
   GP7 Motors — Auth Page (Entrar / Criar Conta)
   CSS completamente isolado, não herda nada do main.css
═══════════════════════════════════════════════════════════════ */

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

html, body { height: 100%; }

/* Esconder qualquer elemento injetado pelo WordPress/plugins (admin bar, hero, etc.) */
#wpadminbar,
.site-header, .site-content, .site-footer,
.hero, .hero__carousel, .hero__carousel-dark,
.navbar, #navbar { display: none !important; }

body {
  font-family: 'Figtree', sans-serif;
  background: #080808;
  color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Layout principal ──────────────────────────────────────── */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Painel esquerdo ───────────────────────────────────────── */
.auth-left {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0); /* força layer GPU — previne repaint flash */
}

.auth-left__bg {
  position: absolute;
  inset: 0;
  background-color: #111;
  background-size: cover;
  background-position: center;
  will-change: transform; /* pré-aloca layer para a imagem grande */
}

.auth-left__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #080808 0%,
    rgba(8,8,8,.72) 28%,
    rgba(8,8,8,.28) 60%,
    rgba(8,8,8,.48) 100%
  );
}


.auth-left__logo {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
}

.auth-left__logo img {
  height: 140px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.auth-left__quote {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  padding: 32px 36px 44px;
}

.auth-left__quote p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  font-style: italic;
  margin-bottom: 14px;
}

.auth-left__quote footer {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  font-family: monospace;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ── Painel direito ────────────────────────────────────────── */
.auth-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  background: #0d0d0d;
  padding: 60px 24px 40px;
  overflow: hidden;
}

.auth-right__bg { display: none; } /* removido — causava repaint artifacts */

/* Botão voltar */
.auth-back {
  position: absolute;
  top: 26px; left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: 'Figtree', sans-serif;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
  z-index: 2;
}
.auth-back:hover { color: #fff; }

/* Wrapper do formulário */
.auth-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 364px;
  margin: 0 auto;
}

/* Logo mobile */
.auth-logo-mobile {
  display: none;
  margin-bottom: 24px;
}
.auth-logo-mobile img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

/* Cabeçalho */
.auth-header {
  margin-bottom: 24px;
}
.auth-header__title {
  font-size: 23px;
  font-weight: 700;
  color: #f5f5f5;
  letter-spacing: -.025em;
  margin-bottom: 6px;
}
.auth-header__sub {
  font-size: 14px;
  color: rgba(255,255,255,.45);
}

/* Botões sociais */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.auth-social__btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: #f5f5f5;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.auth-social__btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}

.auth-social__soon {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(255,255,255,.09);
  border-radius: 4px;
  padding: 2px 7px;
  color: rgba(255,255,255,.35);
  margin-left: auto;
}

/* Separador OR */
.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.auth-sep__line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}
.auth-sep__text {
  font-size: 11px;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Tabs */
.auth-tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.38);
  cursor: pointer;
  transition: color .18s;
}
.auth-tab:hover { color: rgba(255,255,255,.7); }
.auth-tab--active { color: #f5f5f5; }

.auth-tab__bar {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: left .25s cubic-bezier(.34,1.56,.64,1), width .25s cubic-bezier(.34,1.56,.64,1);
}

/* Painel de tab */
.auth-panel { display: block; }

/* Formulário */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  font-family: 'Figtree', sans-serif;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-forgot {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .15s;
}
.auth-forgot:hover { color: #fff; }

.auth-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: #f5f5f5;
  outline: none;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
}
.auth-input::placeholder { color: rgba(255,255,255,.2); }
.auth-input:focus {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.09);
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background: #f5f5f5;
  color: #111;
  border: none;
  border-radius: 9px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-top: 2px;
}
.auth-submit:hover  { background: #fff; }
.auth-submit:active { transform: scale(.98); }

/* Alerta de erro */
.auth-alert {
  font-size: 13px;
  color: #ff7b7b;
  background: rgba(255,100,100,.1);
  border: 1px solid rgba(255,100,100,.2);
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

/* Termos */
.auth-terms {
  font-size: 12px;
  color: rgba(255,255,255,.25);
  margin-top: 22px;
  line-height: 1.65;
}
.auth-terms a {
  color: rgba(255,255,255,.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-terms a:hover { color: #fff; }

/* Toast */
.auth-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  padding: 12px 20px;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
}
.auth-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
  .auth-right { padding: 60px 20px 40px; justify-content: center; }
  .auth-logo-mobile { display: block; }
}
