/* ==========================================================================
   Vinílico Express — Backoffice / Autenticação (mockup)
   Reaproveita as variáveis de cor definidas em ../../css/style.css
   ========================================================================== */

html, body {
  height: 100%;
}
body {
  background: var(--cor-cinza-100);
}

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

/* ---------- Lado institucional ---------- */
.auth-brand {
  position: relative;
  background: linear-gradient(160deg, var(--cor-petroleo) 0%, var(--cor-petroleo-dark) 100%);
  color: var(--cor-branco);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 480px;
  height: 480px;
  background: var(--cor-laranja);
  opacity: .14;
  border-radius: 50%;
  filter: blur(4px);
}
.auth-brand__top { position: relative; z-index: 1; }
.auth-brand .logo__chip {
  display: inline-flex;
  background: var(--cor-branco);
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 56px;
}
.auth-brand .logo__chip img { height: 34px; display: block; }

.auth-brand h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  max-width: 440px;
}
.auth-brand h1 em {
  font-style: normal;
  color: var(--cor-laranja);
}
.auth-brand p.lead {
  font-size: 16px;
  color: var(--cor-texto-claro);
  max-width: 420px;
  margin: 0 0 40px;
}

.auth-brand__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.auth-brand__benefits li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.auth-brand__benefits .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cor-laranja);
}
.auth-brand__benefits strong { display: block; font-size: 15px; margin-bottom: 2px; }
.auth-brand__benefits span { font-size: 13.5px; color: var(--cor-texto-claro); }

.auth-brand__quote {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--cor-texto-claro);
}

/* ---------- Lado do formulário ---------- */
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card__head { margin-bottom: 28px; }
.auth-card__head h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.auth-card__head p {
  margin: 0;
  color: var(--cor-cinza-600);
  font-size: 14.5px;
}

/* Tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cor-cinza-100);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tabs button {
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--cor-cinza-600);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.auth-tabs button.is-active {
  background: var(--cor-branco);
  color: var(--cor-preto);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Painéis */
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }

/* Campos */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--cor-preto);
}
.field .hint {
  font-weight: 400;
  color: var(--cor-cinza-600);
  font-size: 12.5px;
}
.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cor-cinza-400);
  pointer-events: none;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--cor-cinza-200);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  background: var(--cor-branco);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus {
  border-color: var(--cor-petroleo);
  box-shadow: 0 0 0 3px var(--cor-petroleo-light);
}
.field .toggle-senha {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cor-cinza-600);
  padding: 4px;
}

.field-row { display: flex; justify-content: space-between; align-items: center; margin: -8px 0 18px; }
.link-inline {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cor-petroleo);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.link-inline:hover { text-decoration: underline; }

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -6px 0 18px;
}
.check-row input { width: 16px; height: 16px; accent-color: var(--cor-petroleo); }
.check-row label { font-size: 13.5px; color: var(--cor-cinza-600); }

/* Seletor de perfil (segmented) */
.perfil-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.perfil-opt {
  display: block;
  position: relative;
}
.perfil-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.perfil-opt__card {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1.5px solid var(--cor-cinza-200);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.perfil-opt__card svg { color: var(--cor-cinza-400); margin-bottom: 6px; transition: color .15s ease; }
.perfil-opt__card strong { display: block; font-size: 13.5px; }
.perfil-opt__card span { font-size: 11.5px; color: var(--cor-cinza-600); }
.perfil-opt input:checked + .perfil-opt__card {
  border-color: var(--cor-petroleo);
  background: var(--cor-petroleo-light);
}
.perfil-opt input:checked + .perfil-opt__card svg { color: var(--cor-petroleo); }
.perfil-opt input:focus-visible + .perfil-opt__card { box-shadow: 0 0 0 3px var(--cor-petroleo-light); }

/* Botão de ação principal */
.btn-block {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: var(--cor-laranja);
  color: var(--cor-branco);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(194, 112, 38, .3);
  transition: background-color .15s ease, transform .15s ease;
}
.btn-block:hover { background: var(--cor-laranja-dark); transform: translateY(-1px); }

.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cor-cinza-600);
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
}
.btn-voltar:hover { color: var(--cor-preto); }

.auth-foot-note {
  text-align: center;
  font-size: 13px;
  color: var(--cor-cinza-600);
  margin-top: 24px;
}
.auth-foot-note a { color: var(--cor-petroleo); font-weight: 700; text-decoration: none; }
.auth-foot-note a:hover { text-decoration: underline; }

/* Estado: cadastro em análise */
.analise-box {
  text-align: center;
  padding: 12px 4px 4px;
}
.analise-box__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cor-petroleo-light);
  color: var(--cor-petroleo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.analise-box h2 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.analise-box p { font-size: 14.5px; color: var(--cor-cinza-600); margin: 0 0 26px; line-height: 1.6; }
.analise-box .resumo {
  text-align: left;
  background: var(--cor-cinza-100);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 26px;
  display: grid;
  gap: 8px;
}
.analise-box .resumo div { display: flex; justify-content: space-between; font-size: 13.5px; }
.analise-box .resumo dt { color: var(--cor-cinza-600); }
.analise-box .resumo dd { margin: 0; font-weight: 700; }

/* Mensagem de sucesso — recuperação de senha */
.recuperar-sucesso { display: none; }
.recuperar-sucesso.is-active { display: block; text-align: center; padding: 12px 0 4px; }
.recuperar-sucesso__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--cor-petroleo-light);
  color: var(--cor-petroleo);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.recuperar-sucesso h2 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.recuperar-sucesso p { font-size: 14px; color: var(--cor-cinza-600); margin: 0 0 22px; }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { padding: 36px 28px; }
  .auth-brand__benefits { display: none; }
  .auth-brand__quote { display: none; }
  .auth-brand .logo__chip { margin-bottom: 24px; }
  .auth-form-wrap { padding: 32px 20px 48px; }
}
