/* ============================================================
   login-cliente.css — Autenticação do cliente (tela cheia)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--creme);
}

/* ── Painel esquerdo (visual) ─────────────────────────────── */
.auth-visual {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--verde-escuro);
  background-image: url('/uploads/site/img_hero_1783430192.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(46, 59, 34, 0.72) 0%,
    rgba(46, 59, 34, 0.45) 50%,
    rgba(46, 59, 34, 0.65) 100%
  );
}

.auth-visual-texto {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
  font-family: var(--fonte-elegante);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.5px;
  color: var(--dourado-claro);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* ── Painel direito (formulários) ─────────────────────────── */
.auth-painel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2.5rem 2rem;
  background: var(--creme);
  overflow-y: auto;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-voltar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--texto-suave);
  text-decoration: none;
  transition: var(--transicao);
}

.auth-voltar:hover {
  color: var(--verde-musgo);
}

.auth-marca {
  margin-bottom: 2rem;
  text-align: center;
}

.auth-marca-nome {
  display: block;
  font-family: var(--fonte-serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--verde-escuro);
}

.auth-marca-slogan {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--fonte-elegante);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 1.5px;
  color: var(--dourado-escuro);
}

/* ── Abas ─────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(196, 163, 90, 0.25);
}

.auth-tab {
  flex: 1;
  padding: 0.85rem 0.5rem;
  border: none;
  background: transparent;
  font-family: var(--fonte-corpo);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--texto-suave);
  cursor: pointer;
  position: relative;
  transition: var(--transicao);
}

.auth-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.auth-tab:hover {
  color: var(--verde-escuro);
}

.auth-tab.ativo {
  color: var(--verde-escuro);
}

.auth-tab.ativo::after {
  transform: scaleX(1);
}

/* ── Transição entre formulários ──────────────────────────── */
.auth-forms {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: 280px;
}

.auth-form {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s;
  pointer-events: none;
}

.auth-form.ativo {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.auth-form.saindo {
  opacity: 0;
  transform: translateX(-28px);
}

/* ── Floating labels ──────────────────────────────────────── */
.float-field {
  position: relative;
  margin-bottom: 1.75rem;
}

.float-field input {
  width: 100%;
  padding: 1.35rem 0 0.55rem;
  border: none;
  border-bottom: 1px solid rgba(196, 163, 90, 0.45);
  border-radius: 0;
  background: transparent;
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  color: var(--texto);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.float-field input::placeholder {
  color: transparent;
}

.float-field input:focus {
  outline: none;
  border-bottom-color: var(--dourado);
  box-shadow: 0 1px 0 0 var(--dourado);
}

.float-field label {
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-family: var(--fonte-corpo);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--texto-suave);
  pointer-events: none;
  transform-origin: left top;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.25s ease,
    font-size 0.25s ease;
}

.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label {
  transform: translateY(-1.15rem) scale(0.82);
  color: var(--dourado-escuro);
  font-weight: 600;
}

/* ── Botões e links ───────────────────────────────────────── */
.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: var(--raio);
  background: var(--dourado);
  font-family: var(--fonte-corpo);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--verde-escuro);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(196, 163, 90, 0.4);
  transition: var(--transicao);
}

.auth-submit:hover {
  background: var(--dourado-escuro);
  color: var(--creme);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 163, 90, 0.5);
}

.auth-submit:active {
  transform: translateY(0);
}

/* ── Alertas e verificação (local) ─────────────────────────── */
.auth-alert {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--raio);
  font-family: var(--fonte-corpo);
  font-size: 0.85rem;
  line-height: 1.5;
  border-left: 3px solid transparent;
}

.auth-alert-erro {
  background: rgba(220, 53, 69, 0.08);
  border-left-color: #dc3545;
  color: #9e2a2a;
}

.auth-alert-sucesso {
  background: rgba(74, 92, 58, 0.1);
  border-left-color: var(--verde-musgo);
  color: var(--verde-escuro);
}

.auth-verificacao-card {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.12) 0%, rgba(250, 246, 239, 0.95) 100%);
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: var(--raio-grande);
  box-shadow: 0 8px 24px rgba(46, 59, 34, 0.08);
}

.auth-verificacao-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--fonte-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--verde-escuro);
}

.auth-verificacao-card p {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--texto-suave);
}

.auth-verificacao-link {
  display: block;
  padding: 0.65rem 0.85rem;
  background: var(--creme);
  border: 1px dashed rgba(196, 163, 90, 0.5);
  border-radius: var(--raio);
  font-family: var(--fonte-corpo);
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--verde-musgo);
  text-decoration: none;
  transition: var(--transicao);
}

.auth-verificacao-link:hover {
  border-color: var(--dourado);
  color: var(--dourado-escuro);
  background: #fff;
}

.auth-esqueci {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  font-family: var(--fonte-corpo);
  font-size: 0.78rem;
  color: var(--texto-suave);
  opacity: 0.8;
  text-decoration: none;
  transition: var(--transicao);
}

.auth-esqueci:hover {
  opacity: 1;
  color: var(--verde-musgo);
}

.auth-nota {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 163, 90, 0.2);
  font-family: var(--fonte-corpo);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
  color: var(--texto-suave);
}

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-visual {
    min-height: 220px;
    padding: 2rem 1.5rem;
  }

  .auth-visual-texto {
    font-size: 1.35rem;
  }

  .auth-painel {
    min-height: auto;
    padding: 2rem 1.5rem 3rem;
    justify-content: flex-start;
  }

  .auth-forms {
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .auth-tab {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
  }

  .auth-marca-nome {
    font-size: 1.5rem;
  }
}
