/* ==========================================================================
   RS Carros — telas de autenticação
   --------------------------------------------------------------------------
   Compartilhado pelo SITE (entrar, cadastrar) e pelo PAINEL (entrar,
   recuperar senha). Por isso vive em arquivo próprio: nem o painel precisa
   do pages.css inteiro, nem o site do shell.css.

   Depende dos tokens de style.css.
   ========================================================================== */

/* ======================================================================== */
/*  Autenticação (entrar / cadastrar)                                       */
/* ======================================================================== */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

.auth-aside {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.auth-aside::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--auth-image);
  background-size: cover; background-position: center;
  opacity: .3;
}
.auth-aside::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(23, 23, 23, .84) 0%, rgba(179, 58, 0, .58) 100%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand-text { color: #fff; }
.auth-aside .quote { max-width: 440px; }
.auth-aside .quote h2 { font-size: clamp(24px, 2.6vw, 33px); font-weight: 800; }
.auth-aside .quote > p { margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.auth-points .ico {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
}
.auth-aside .stats { display: flex; gap: 34px; }
.auth-aside .stats strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.auth-aside .stats span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 44px 24px; background: var(--surface); }
.auth-box { width: min(424px, 100%); }
.auth-box .brand { margin-bottom: 30px; }
.auth-box .brand .brand-text { color: var(--text); }
.auth-box .brand .brand-text span { color: var(--muted-2); }
.auth-box h1 { font-size: 27px; font-weight: 800; }
.auth-box > p { margin-top: 30px; color: var(--muted); font-size: 14.5px; }

.auth-switch { display: flex; gap: 4px; padding: 4px; margin: 24px 0 22px; background: var(--bg); border-radius: 12px; }
.auth-switch button,
.auth-switch a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px;
  border: 0; border-radius: 9px;
  background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  text-decoration: none;
  transition: background .18s, color .18s, box-shadow .18s;
}
.auth-switch button.active,
.auth-switch a.active { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted-2); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
                  margin-top: 20px; }
/* Com um provedor só, o botão ocupa a linha inteira: meia largura ao lado
   de um vazio parece que o outro botão não carregou.

   Centralizado porque quem desenha o botão é o Google, dentro de um iframe
   de largura fixa (400px é o teto dele). Encostado à esquerda, ele terminava
   antes dos campos e a coluna parecia torta. */
.social-buttons.uma { grid-template-columns: 1fr; justify-items: center; }
.social-buttons.uma > div { width: 100%; max-width: 400px; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14px; font-weight: 600;
  transition: border-color .18s, background .18s;
}
.social-btn:hover { border-color: var(--muted-2); background: #FCFCFD; }
.social-btn svg { width: 19px; height: 19px; }

.auth-foot { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-foot a { color: var(--brand-texto); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* ----------------------------- Responsivo ------------------------------- */

@media (max-width: 1024px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

@media (max-width: 640px) {
  .auth-main { padding: 28px 20px; }
  .social-buttons { grid-template-columns: 1fr; }
}
