/* SITUR — tela de login (modelo C: cartão com foto + curvas de nível) */
/* Fonte Poppins servida pelo próprio SITUR (licença SIL Open Font License) */
@font-face { font-family: 'Poppins'; font-weight: 300; font-display: swap; src: url('/vendor/fonts/poppins/Poppins-Light.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('/vendor/fonts/poppins/Poppins-Regular.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/poppins/Poppins-Medium.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/poppins/Poppins-Bold.woff') format('woff'); }

:root {
  --login-escuro: #0d1f18;
  --login-verde: #0B7C41;
  --login-verde-2: #13a35a;
  --login-claro: #c5f5a8;
}

/* Paleta SITUR (usada também pelas mensagens e botões) */
.bg-vitar-dark { background-color: #0d1f18; }
.bg-vitar-accent { background-color: #0B7C41; }
.text-vitar-accent { color: #86efac; }
.text-vitar-dark { color: #0d1f18; }
.btn-vitar { background: linear-gradient(90deg, var(--login-verde), var(--login-verde-2)); color: #ffffff;
  box-shadow: 0 10px 20px rgba(11, 124, 65, .25); transition: filter .15s, transform .15s; }
@media (hover: hover) and (pointer: fine) { .btn-vitar:hover { filter: brightness(1.06); } }
.btn-vitar:active { transform: translateY(1px); }
.btn-vitar:focus-visible { outline: 3px solid rgba(74, 222, 128, .55); outline-offset: 2px; }
.btn-vitar:disabled { opacity: .6; cursor: wait; box-shadow: none; }
input:not([type="checkbox"]) { cursor: default !important; }
.etapa { display: none; }
.etapa.ativa { display: block; }

/* ---------- Fundo ---------- */
.login-fundo {
  min-height: 100vh; margin: 0; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: radial-gradient(1200px 700px at 15% 0%, #1f4a33 0%, var(--login-escuro) 60%) var(--login-escuro);
  position: relative; overflow-x: hidden;
}
.login-fundo::before { /* curvas de nível */
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .16;
  background: url('/img/curvas-nivel.svg') center / cover no-repeat;
}

/* ---------- Cartão ---------- */
.login-cartao {
  position: relative; width: 100%; max-width: 900px;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.login-foto {
  position: relative; min-height: 560px; padding: 38px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: var(--login-escuro) url('/img/login-floresta.jpg') center 38% / cover no-repeat;
}
.login-foto::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 24, .05) 0%, rgba(13, 31, 24, .25) 45%, rgba(13, 31, 24, .9) 100%);
}
.login-foto > * { position: relative; }
.login-foto h2 { font-size: 28px; font-weight: 400; line-height: 1.22; margin: 0; }
.login-foto .destaque { font-weight: 700; color: var(--login-claro); }
.login-foto .traco { width: 64px; height: 1.5px; background: rgba(255, 255, 255, .6); margin: 22px 0 16px; }
.login-foto p { font-size: 13px; font-weight: 300; opacity: .88; margin: 0; }

.login-form { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; color: #0f172a; }
.login-marca { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 28px; }
.login-marca img { width: 68px; height: 68px; }
.login-marca h1 { margin: 2px 0 0; line-height: 1; }
.login-marca b { display: block; font-size: 30px; font-weight: 700; letter-spacing: .06em; color: #1e5a37; line-height: 1; }
.login-marca small { display: block; font-size: 13px; font-weight: 400; letter-spacing: .08em; color: #3f7a55; margin-top: 2px; }

/* Títulos e campos de todas as etapas (CPF/senha, troca de senha, 2FA, códigos) */
.login-form h2 { font-size: 22px; font-weight: 500; color: var(--login-escuro); }
.login-form label { font-family: inherit; text-transform: none; letter-spacing: .01em; font-weight: 500; color: #475569; }
.login-form input:not([type="checkbox"]) {
  font-family: inherit; background: #f1f5f3; border: 1.5px solid transparent; border-radius: 12px;
  padding-top: .8rem; padding-bottom: .8rem; transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-form input:not([type="checkbox"]):focus {
  background: #fff; border-color: var(--login-verde); box-shadow: 0 0 0 4px rgba(11, 124, 65, .12);
}
.login-form .btn-vitar { border-radius: 12px; font-family: inherit; font-weight: 600; padding-top: .85rem; padding-bottom: .85rem; }

/* Campo com ícone (CPF e senha) */
.campo-icone { position: relative; }
.campo-icone > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--login-verde); opacity: .75; font-size: 14px; pointer-events: none; }
.login-form .campo-icone input { padding-left: 2.6rem; }

.login-rodape { position: relative; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .45); margin-top: 22px; }
.login-rodape b { color: rgba(255, 255, 255, .7); }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .login-fundo { padding: 16px; justify-content: flex-start; }
  .login-cartao { grid-template-columns: 1fr; border-radius: 24px; margin-top: 8px; }
  .login-foto { min-height: 190px; padding: 22px; background-position: center 30%; }
  .login-foto h2 { font-size: 20px; }
  .login-foto .traco { margin: 14px 0 0; }
  .login-foto p { display: none; }
  .login-form { padding: 28px 22px; }
  .login-marca { margin-bottom: 20px; }
  .login-marca img { width: 56px; height: 56px; }
  .login-marca b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .btn-vitar, .login-form input { transition: none; } }

/* Preenchimento automático do navegador: mantém o fundo do campo (sem o azul do Chrome) */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a;
  -webkit-box-shadow: 0 0 0 1000px #f1f5f3 inset;
  caret-color: #0f172a;
  transition: background-color 9999s ease-out 0s;
}
.login-form input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(11, 124, 65, .12); }
