/* PROJETO ROBUSTEZ | Interface de login — referência Vivo B2B */
:root {
  --roxo-escuro: #24063e;
  --roxo-vivo: #6900b5;
  --roxo-luminoso: #ab21ec;
  --texto: #2b1049;
  --laranja: #ff8a34;
  --fonte-titulos: "Outfit", "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  --fonte-textos: "DM Sans", "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--texto);
  font-family: var(--fonte-textos);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse at 3% 16%, #542083 0, transparent 40%),
    radial-gradient(ellipse at 85% 88%, #461074 0, transparent 50%),
    #170528;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #ac2fff; outline-offset: 3px; }
.page { min-height: 100svh; padding: 18px; display: grid; place-items: center; }
.layout {
  width: min(1550px, 100%);
  height: min(860px, calc(100svh - 36px));
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 36%);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(206, 100, 255, .23);
  box-shadow: 0 24px 75px rgba(12, 0, 28, .43);
}
/* PAINEL ESQUERDO — SEM PAISAGEM/CIDADE */
.apresentacao {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 3.25vw, 50px);
  color: #fff;
  background:
    radial-gradient(ellipse at 78% 72%, rgba(255, 163, 55, .95) 0, rgba(237, 81, 47, .78) 18%, rgba(111, 35, 115, .42) 48%, transparent 75%),
    radial-gradient(ellipse at 85% 22%, rgba(106, 23, 196, .66), transparent 57%),
    linear-gradient(150deg, #19062e 2%, #340951 42%, #54205f 75%, #26063d 100%);
}
.apresentacao::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19, 4, 36, .91) 0%, rgba(30, 5, 57, .75) 29%, rgba(31, 7, 57, .34) 58%, transparent 82%),
    linear-gradient(0deg, rgba(22, 5, 37, .85), transparent 24%);
}
.brilho {
  position: absolute;
  z-index: -1;
  width: 500px;
  height: 500px;
  right: -60px;
  bottom: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 156, 60, .36), transparent 65%);
  filter: blur(23px);
  pointer-events: none;
}
.antena {
  position: absolute;
  z-index: -1;
  right: max(-10px, -1.3%);
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
  object-fit: contain;
  object-position: right center;
  filter: saturate(1.09) contrast(1.03);
}
.topo-esquerdo, .texto-projeto, .rodape-esquerdo { position: relative; z-index: 2; }
.marca { display: block; height: auto; object-fit: contain; }
.marca-branca { width: clamp(145px, 13vw, 188px); max-height: 75px; object-position: left center; }
.texto-projeto { align-self: center; margin-top: -4px; }
.sobretitulo { margin: 0 0 5px; font-size: clamp(13px, 1.4vw, 20px); font-weight: 600; letter-spacing: .26em; }
.texto-projeto h1 {
  margin: 0;
  font-size: clamp(55px, 6vw, 88px);
  line-height: 1.04;
  letter-spacing: -.038em;
  font-family: var(--fonte-titulos);
  font-weight: 800;
  text-shadow: none;
}
.traco { width: 72px; height: 6px; margin: 19px 0 20px; background: #c34fff; border-radius: 50px; }
.descricao-sistema { margin: 0; font-size: clamp(11px, 1.05vw, 13px); font-weight: 700; letter-spacing: .14em; }
.frase { max-width: 390px; margin: 32px 0 0; font-size: clamp(17px, 1.72vw, 24px); line-height: 1.52; font-weight: 500; }
.rodape-esquerdo { align-self: end; }
.recursos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.recurso {
  display: flex;
  align-items: center;
  gap: clamp(7px, .9vw, 14px);
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(230, 164, 255, .45);
  border-radius: 16px;
  background: rgba(42, 9, 69, .70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 600;
  line-height: 1.38;
}
.recurso svg { width: 30px; height: 30px; flex: 0 0 30px; color: #cf65ff; }
.assinatura { margin: 22px 2px 0; color: rgba(255, 255, 255, .76); font-size: 10px; letter-spacing: .105em; }
.assinatura span { color: #d29ef6; padding-inline: 6px; }
/* PAINEL DIREITO */
.painel-login {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 3.6vw, 48px);
  border-radius: 0;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.versao { position: absolute; right: 26px; top: 20px; color: #9985ad; font-size: 11px; }
.conteudo-login { width: 100%; max-width: 440px; }
.cabecalho-login { text-align: center; }
.marca-roxa { width: clamp(151px, 14vw, 205px); margin-inline: auto; max-height: 73px; }
.projeto-pequeno { margin: 20px 0 2px; font-size: 14px; letter-spacing: .28em; font-weight: 700; }
.cabecalho-login h2 { margin: 0; font-size: clamp(42px, 4.1vw, 58px); line-height: 1.05; letter-spacing: -.035em; font-family: var(--fonte-titulos); font-weight: 800; }
.traco-login { width: 40px; height: 4px; background: #b341ed; border-radius: 4px; margin: 8px auto 8px; }
.chamada { margin: 30px 0 19px; text-align: center; color: #51485e; font-size: 15px; font-weight: 500; }
.campo {
  height: 54px;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #dcd5e7;
  border-radius: 11px;
  padding: 0 16px;
  margin-bottom: 13px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.campo:focus-within { border-color: #9b27e6; box-shadow: 0 0 0 3px rgba(157, 51, 233, .12); }
.campo > svg { width: 21px; height: 21px; flex: 0 0 21px; color: #9189a1; }
.campo input { border: 0; background: none; outline: 0; min-width: 0; flex: 1; height: 100%; font-size: 15px; font-weight: 500; color: #332046; }
.campo input::placeholder { color: #8c809e; }
.ver-senha { border: 0; background: transparent; color: #82788f; display: grid; place-items: center; padding: 4px; }
.ver-senha svg { width: 21px; height: 21px; }
.entrar { display: flex; justify-content: center; align-items: center; gap: 18px; width: 100%; height: 56px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(110deg, #6200b9, #a321e7); font-size: 17px; font-family: var(--fonte-titulos); font-weight: 700; transition: transform .2s, filter .2s; }
.entrar:hover { filter: brightness(1.07); transform: translateY(-1px); }
.entrar span { font-size: 26px; line-height: 1; font-weight: 400; }
.linha-opcoes { margin: 15px 0 4px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; font-weight: 500; }
.manter { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.manter input { accent-color: #7000bd; width: 15px; height: 15px; margin: 0; }
.link { padding: 0; border: 0; color: #7400c3; background: none; text-decoration: underline; }
.link:hover { color: #4c0087; }
.aviso { display: flex; align-items: center; gap: 13px; margin-top: 22px; background: #f6f0fc; padding: 14px 16px; border-radius: 13px; color: #6b6275; }
.aviso svg { flex: 0 0 31px; width: 31px; height: 31px; color: #7920bf; }
.aviso p { font-size: 12px; line-height: 1.5; margin: 0; }
.aviso strong { color: #36154f; font-size: 12px; }
.mensagem { font-size: 12px; line-height: 1.35; color: #6521a9; margin: 0; text-align: center; }
.mensagem:not(:empty) { margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Compactação para notebooks baixos. Não esconde itens do formulário. */
@media (min-width: 901px) and (max-height: 850px) {
  .page { padding: 10px; }
  .layout { height: calc(100svh - 20px); min-height: 570px; }
  .apresentacao { padding: 29px 33px; }
  .marca-branca { width: 143px; }
  .texto-projeto h1 { font-size: clamp(53px, 5vw, 68px); }
  .texto-projeto .traco { margin: 13px 0 12px; }
  .frase { margin-top: 19px; font-size: 17px; }
  .recurso { min-height: 63px; padding: 9px; }
  .recurso svg { width: 25px; height: 25px; flex-basis: 25px; }
  .assinatura { margin-top: 13px; font-size: 10px; }
  .painel-login { margin: 0; padding: 18px 29px; }
  .marca-roxa { width: 137px; }
  .projeto-pequeno { margin-top: 8px; font-size: 11px; }
  .cabecalho-login h2 { font-size: 42px; }
  .traco-login { margin: 4px auto; }
  .chamada { margin: 13px 0 10px; font-size: 13px; }
  .campo { height: 44px; margin-bottom: 8px; }
  .entrar { height: 45px; }
  .linha-opcoes { margin: 9px 0 5px; }
  .aviso { margin-top: 11px; padding: 9px 12px; }
  .aviso svg { width: 26px; height: 26px; flex-basis: 26px; }
  .aviso p { font-size: 11px; }
}
@media (min-width: 901px) and (max-width: 1160px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(400px, 43%); }
  .apresentacao { padding-inline: 26px; }
  .texto-projeto h1 { font-size: clamp(51px, 5vw, 73px); }
  .recurso { padding: 9px; gap: 6px; }
  .recurso svg { width: 23px; height: 23px; flex-basis: 23px; }
  .assinatura { font-size: 9px; letter-spacing: .065em; }
}
/* Tablet e celular: painéis empilhados e rolagem natural, nunca elementos cortados. */
@media (max-width: 900px) {
  .page { display: block; padding: 14px; }
  .layout { grid-template-columns: 1fr; height: auto; min-height: 0; width: min(680px, 100%); margin: auto; }
  .apresentacao { min-height: 555px; padding: 30px; }
  .antena { height: 100%; right: 0; }
  .texto-projeto h1 { font-size: clamp(56px, 10vw, 76px); }
  .frase { font-size: 18px; margin-top: 20px; }
  .recurso { min-height: 73px; padding: 12px 10px; }
  .painel-login { margin: 0; border-radius: 0; padding: 55px 30px 42px; }
  .versao { top: 17px; }
}
@media (max-width: 520px) {
  .page { padding: 0; }
  .layout { border: 0; border-radius: 0; box-shadow: none; }
  .apresentacao { min-height: 490px; padding: 24px 20px 20px; }
  .marca-branca { width: 145px; }
  .texto-projeto { margin-top: 22px; }
  .texto-projeto h1 { font-size: clamp(48px, 13vw, 65px); }
  .sobretitulo { font-size: 12px; }
  .descricao-sistema { font-size: 10px; letter-spacing: .09em; }
  .frase { font-size: 15px; line-height: 1.5; max-width: 225px; }
  .antena { height: 93%; right: -60px; }
  .recursos { gap: 6px; }
  .recurso { min-height: 69px; gap: 4px; padding: 7px; font-size: 9px; flex-direction: column; justify-content: center; text-align: center; }
  .recurso svg { width: 23px; height: 23px; flex-basis: 23px; }
  .assinatura { margin-top: 12px; font-size: 8px; letter-spacing: .045em; }
  .assinatura span { padding-inline: 2px; }
  .painel-login { padding: 58px 22px 36px; }
  .marca-roxa { width: 160px; }
  .cabecalho-login h2 { font-size: 48px; }
  .chamada { margin: 23px 0 17px; }
  .aviso { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }

/* Recuperação de acesso: modal isolado, sem modificar o design aprovado do login. */
.dialog-recuperacao { width:min(465px,calc(100vw - 24px));padding:0;border:0;border-radius:22px;background:#fff;color:#2d1649;box-shadow:0 30px 110px rgba(24,0,42,.4);max-height:calc(100dvh - 22px);overflow:auto; }
.dialog-recuperacao::backdrop {background:rgba(18,2,37,.73);backdrop-filter:blur(3px)}
.recuperacao-conteudo {padding:29px;display:grid;gap:15px;font-family:'DM Sans',Arial,sans-serif;}
.recuperacao-topo {display:flex;align-items:start;justify-content:space-between;gap:14px}
.recuperacao-topo small {letter-spacing:.17em;color:#8523c9;font-weight:800;font-size:10px}
.recuperacao-topo h2 {font-size:28px;color:#2d1649;margin:5px 0 0}
.recuperacao-fechar {background:#f3e9fc;color:#7020a4;border:0;border-radius:9px;padding:9px 12px;cursor:pointer}
.recuperacao-conteudo p {font-size:13px;line-height:1.55;margin:0;color:#635773}
.recuperacao-conteudo label {font-weight:800;font-size:12px}
.recuperacao-conteudo input {width:100%;border:1px solid #dbcde8;border-radius:11px;padding:14px;background:#fff;color:#2d1649;font:inherit}
.recuperacao-conteudo input:focus {outline:3px solid #e6caff;border-color:#8f2be0}
.recuperacao-conteudo .entrar {height:48px;font-size:14px}
.recuperacao-mensagem {color:#64109e!important;font-weight:700}
.recuperacao-observacao {background:#f8f2fc;padding:12px 13px;border-radius:10px;font-size:11px;color:#71627e;line-height:1.5}
