/* Telas de acesso (entrar, primeiro acesso, convite e recuperação).
   Visual pedido pelo Giovanni em 22/11/2026 (segundo modelo enviado no chat):
   foto azul-escura do escritório à esquerda com o título; cartão claro à direita
   com a marca em azul-marinho, filete dourado, campos com ícone e sem texto de
   exemplo, botão azul-marinho com texto branco.
   A foto é a do próprio modelo, com o texto apagado (o texto agora é HTML). */
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ac-tinta: #0c2336;
  --ac-tinta-forte: #071827;
  --ac-texto: #0f1e33;
  --ac-texto-2: #4a5568;
  --ac-papel: #eceef2;
  --ac-cartao: #f6f7f9;
  --ac-linha: #d6dae1;
  --ac-dourado: #d9aa6a;
  --ac-foco: #24466f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: #cfdbec; color: var(--ac-tinta); }
body {
  margin: 0; min-height: 100vh; color: var(--ac-texto);
  background: linear-gradient(160deg, #f1f2f5 0%, var(--ac-papel) 55%, #e5e8ee 100%) fixed;
  font: 400 15px/1.5 "Montserrat", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.acesso { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Lado da foto ---------- */
.acesso-marca {
  position: relative; display: flex; align-items: center; padding: 64px clamp(40px, 8vw, 160px) clamp(96px, 16vh, 160px) clamp(40px, 11vw, 190px);
  color: #e6eaf0; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 15, 28, .34) 0%, rgba(5, 15, 28, .12) 62%, rgba(5, 15, 28, 0) 100%),
    url("../img/entrada-fundo-azul.webp") center bottom / cover no-repeat, #142233;
}
.acesso-marca-conteudo { position: relative; max-width: 620px; }
.acesso-filete-ouro { display: block; width: 72px; height: 3px; margin-bottom: 38px; background: var(--ac-dourado); border-radius: 2px; }
.acesso-marca h1 {
  margin: 0 0 30px; font-size: clamp(36px, 3.2vw, 56px); line-height: 1.16; font-weight: 600;
  letter-spacing: -.01em; color: #e8ecf1;
}
.acesso-titulo-leve { display: block; font-weight: 300; letter-spacing: 0; color: #e1e6ed; }
.acesso-texto { margin: 0; max-width: 22.4em; font-size: clamp(16px, 1.55vw, 25px); line-height: 1.6; color: #c3ccd7; }

/* ---------- Lado do cartão ---------- */
.acesso-lado { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 5vw, 96px); }
.acesso-cartao {
  width: 100%; max-width: 600px; padding: 52px 54px 56px;
  background: var(--ac-cartao); border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 28px 64px rgba(15, 30, 51, .10), 0 2px 6px rgba(15, 30, 51, .05);
}
.acesso-logo { display: flex; align-items: center; gap: 26px; margin-bottom: 52px; }
.acesso-logo-monograma { width: 76px; height: auto; flex: none; }
.acesso-logo-filete { width: 2px; align-self: stretch; background: var(--ac-dourado); border-radius: 1px; }
.acesso-logo-nome { width: min(330px, 100%); height: auto; min-width: 0; }

.acesso-cartao h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ac-texto); }
.acesso-cartao .sub { margin: 0 0 24px; font-size: 17.5px; color: var(--ac-texto-2); line-height: 1.5; }

label { display: block; margin: 20px 0 8px; font-size: 17.5px; font-weight: 600; color: var(--ac-texto); }
input {
  width: 100%; min-height: 56px; padding: 12px 16px; font: 500 16px "Montserrat", sans-serif; color: var(--ac-texto);
  background: #fbfbfc; border: 1px solid var(--ac-linha); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #66707f; }
input:focus { outline: none; border-color: var(--ac-foco); box-shadow: 0 0 0 4px rgba(36, 70, 111, .16); background: #fff; }
input[type="password"] { font-size: 22px; letter-spacing: .16em; }
input[type="password"]::placeholder { font-size: 16px; letter-spacing: normal; }
input.codigo { font-size: 26px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

.campo-icone { position: relative; display: flex; align-items: center; }
.campo-icone input { padding-left: 58px; }
.campo-icone .campo-icone-svg { position: absolute; left: 20px; width: 22px; height: 22px; color: #1c2d44; pointer-events: none; }
.campo-icone .mostrar-senha + input, .campo-icone input:has(+ .mostrar-senha) { padding-right: 58px; }
.mostrar-senha {
  position: absolute; right: 8px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 10px; background: transparent; color: #1c2d44; cursor: pointer;
}
.mostrar-senha:hover { background: rgba(15, 30, 51, .06); }
.mostrar-senha svg { width: 22px; height: 22px; }
.mostrar-senha .olho-aberto { display: none; }
.mostrar-senha[aria-pressed="true"] .olho-aberto { display: block; }
.mostrar-senha[aria-pressed="true"] .olho-fechado { display: none; }

.botao {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; min-height: 60px; margin-top: 36px; border: 0; border-radius: 9px; cursor: pointer;
  font: 600 20px "Montserrat", sans-serif; color: #fff; background: var(--ac-tinta);
  box-shadow: 0 10px 22px rgba(12, 35, 54, .20);
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.botao:hover { background: var(--ac-tinta-forte); box-shadow: 0 12px 26px rgba(12, 35, 54, .28); }
.botao:active:not(:disabled) { transform: translateY(1px); }
.botao .botao-seta { width: 24px; height: 24px; transition: transform .2s; }
.botao:hover .botao-seta { transform: translateX(3px); }
.botao:disabled { opacity: .6; cursor: wait; }
.botao:focus-visible, .link:focus-visible, .mostrar-senha:focus-visible { outline: 3px solid rgba(36, 70, 111, .45); outline-offset: 3px; }

.link { display: block; background: none; border: none; color: #1d4272; font: 600 14px "Montserrat", sans-serif; cursor: pointer; padding: 10px 0; margin-top: 10px; text-align: left; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.erro { background: #fbe9e6; color: #8c1e18; border: 1px solid #f2c9c2; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 16px; }
.ajuda { color: var(--ac-texto-2); font-size: 13px; margin-top: 10px; line-height: 1.5; }
.qr { display: flex; justify-content: center; margin: 14px 0; }
.qr img { width: 200px; height: 200px; border: 1px solid var(--ac-linha); border-radius: 12px; background: #fff; }
.segredo { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; background: #e9edf3; padding: 10px 12px; border-radius: 8px; word-break: break-all; }
.codigos { background: var(--ac-tinta); color: #f0dcbc; padding: 16px; border-radius: 12px; font: 15px/1.8 ui-monospace, Consolas, monospace; white-space: pre-wrap; text-align: center; }
.marcar { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; margin-top: 18px; }
.marcar input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--ac-tinta); }
ol.passos { padding-left: 20px; color: var(--ac-texto-2); font-size: 14px; line-height: 1.6; }

/* ---------- Telas menores ---------- */
@media (max-width: 1500px) {
  .acesso-marca { padding: 56px 48px clamp(88px, 17vh, 170px) clamp(40px, 9vw, 150px); }
}
@media (max-width: 1180px) {
  .acesso-marca { padding: 48px 40px 72px; }
  .acesso-cartao { padding: 40px 36px 44px; }
}
@media (max-width: 900px) {
  .acesso { grid-template-columns: minmax(0, 1fr); }
  /* No celular: faixa da foto com o título, e o cartão logo abaixo. */
  .acesso-marca { padding: 40px 24px 40px; background-position: center 70%, center 70%; }
  .acesso-texto { display: none; }
  .acesso-filete-ouro { width: 48px; margin-bottom: 18px; }
  .acesso-marca h1 { margin: 0; font-size: 29px; }
  .acesso-lado { padding: 0 14px 40px; align-items: flex-start; }
  .acesso-cartao { margin-top: -18px; position: relative; padding: 28px 22px 30px; border-radius: 18px; }
  .acesso-logo { gap: 14px; margin-bottom: 28px; }
  .acesso-logo-monograma { width: 54px; }
  .acesso-logo-nome { width: min(240px, 100%); }
  .acesso-cartao h2 { font-size: 23px; }
  .acesso-cartao .sub { font-size: 15px; margin-bottom: 18px; }
  label { font-size: 15px; margin-top: 14px; }
  input { min-height: 52px; }
  .botao { min-height: 56px; margin-top: 26px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
