/* ============================================================
   QUART'Z — AUTH.CSS
   Login e Cadastro
   ============================================================ */

body { padding-top: 64px; }

/* ── CONTAINER GERAL ─────────────────────────────────────────── */

.auth-page {
  min-height: calc(100vh - 64px);
  background: var(--washi);
  display: flex;
  flex-direction: column;
}

/* ── BADGE TOPO ──────────────────────────────────────────────── */

.auth-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid var(--amadeirado);
  color: var(--amadeirado);
  margin-bottom: 20px;
}

/* ── CABEÇALHO DA SEÇÃO ──────────────────────────────────────── */

.auth-header {
  padding: 36px 1.2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-header__titulo {
  font-family: var(--font-title);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 400;
  color: var(--void);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.auth-header__sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 200;
  color: var(--ash);
  line-height: 1.7;
  letter-spacing: 0.04em;
  max-width: 280px;
}

/* ── BANNER VIP (só no cadastro) ─────────────────────────────── */

.auth-vip-banner {
  margin: 24px 1.2rem 0;
  background: var(--void);
  padding: 14px 16px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--washi);
  line-height: 1.8;
}

/* ── FORMULÁRIO ──────────────────────────────────────────────── */

.auth-form {
  padding: 28px 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Campo */
.auth-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-campo__label {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--void);
}

.auth-campo__label span {
  font-weight: 200;
  color: var(--ash);
  letter-spacing: 0.10em;
  text-transform: none;
  font-size: 9px;
}

.auth-campo__input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--stone);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 16px; /* min 16px evita zoom automático no iOS */
  color: var(--void);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.auth-campo__input::placeholder { color: var(--stone); }
.auth-campo__input:focus { border-color: var(--amadeirado); }

/* Campo com ícone (senha) */
.auth-campo--senha { position: relative; }
.auth-campo--senha .auth-campo__input { padding-right: 44px; }
.auth-campo__olho {
  position: absolute;
  right: 14px;
  bottom: 13px;
  color: var(--stone);
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.2s;
}
.auth-campo__olho:hover { color: var(--ash); }

/* Link esqueci senha */
.auth-link-esqueci {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 200;
  color: var(--amadeirado);
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: -6px;
  cursor: pointer;
}

/* ── BOTÃO PRINCIPAL ─────────────────────────────────────────── */

.auth-btn {
  width: 100%;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  margin-top: 4px;
}

.auth-btn--primary {
  background: var(--void);
  color: var(--washi);
}
.auth-btn--primary:hover { opacity: 0.85; }

/* ── DIVISOR "ou continue com" ───────────────────────────────── */

.auth-divisor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 1.2rem;
  margin-top: 20px;
}
.auth-divisor__linha {
  flex: 1;
  height: 1px;
  background: var(--stone);
}
.auth-divisor__texto {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 200;
  color: var(--ash);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── BOTÕES SOCIAIS ──────────────────────────────────────────── */

.auth-sociais {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 1.2rem;
  margin-top: 12px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--stone);
  background: transparent;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--void);
  cursor: pointer;
  transition: border-color 0.2s;
  letter-spacing: 0.04em;
}
.auth-social-btn:hover { border-color: var(--void); }
.auth-social-btn img { width: 16px; height: 16px; }

/* ── LINK ALTERNATIVO (criar / entrar) ───────────────────────── */

.auth-alt {
  text-align: center;
  padding: 20px 1.2rem 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 200;
  color: var(--ash);
  letter-spacing: 0.04em;
}
.auth-alt a {
  color: var(--amadeirado);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 300;
}

/* ── CHECKBOX OPTIN ──────────────────────────────────────────── */

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.auth-check input[type="checkbox"] { display: none; }

.auth-check__box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--stone);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.auth-check input:checked + .auth-check__box {
  background: var(--amadeirado);
  border-color: var(--amadeirado);
}
.auth-check input:checked + .auth-check__box::after {
  content: '';
  display: block;
  width: 8px;
  height: 5px;
  border-left: 1.5px solid var(--washi);
  border-bottom: 1.5px solid var(--washi);
  transform: rotate(-45deg) translateY(-1px);
}

.auth-check__texto {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 200;
  color: var(--ash);
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.auth-check__texto a {
  color: var(--amadeirado);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── BENEFÍCIOS (ícones abaixo do form) ──────────────────────── */

.auth-beneficios {
  padding: 32px 1.2rem 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--stone);
  margin-top: 32px;
}

.auth-beneficio {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-beneficio__icone {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 18px;
  flex-shrink: 0;
}

.auth-beneficio__texto {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--void);
}

/* Botão social único — ocupa largura total */
.auth-sociais--unico {
  grid-template-columns: 1fr;
}

/* ============================================================
   DESKTOP — AUTH (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {

  .auth-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .auth-header {
    padding: 36px 0 0;
  }

  .auth-form {
    padding: 28px 0 0;
  }

  .auth-campo__input { font-size: 14px; }

  .auth-vip-banner {
    margin: 24px 0 0;
  }

  .auth-divisor { padding: 0; margin-top: 20px; }
  .auth-sociais { padding: 0; margin-top: 12px; }
  .auth-alt      { padding: 20px 0 0; }

  .auth-beneficios {
    padding: 32px 0 40px;
    margin-top: 32px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: center;
  }
}
