.login-page { min-height: 100vh; background: #f5f6f8; }
.login-shell { display: grid; grid-template-columns: minmax(390px, .9fr) minmax(520px, 1.1fr); min-height: 100vh; }

.login-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(36px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 5% 10%, rgba(240,100,59,.27), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(240,100,59,.14), transparent 32%),
    #172033;
}
.login-hero::before, .login-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); }
.login-hero::before { width: 480px; height: 480px; right: -260px; bottom: -220px; box-shadow: 0 0 0 80px rgba(255,255,255,.018); }
.login-hero::after { width: 220px; height: 220px; left: -120px; top: 42%; box-shadow: 0 0 0 55px rgba(255,255,255,.018); }
.login-marca-principal { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: #fff; text-decoration: none; font-size: 1.15rem; font-weight: 750; }
.login-marca-principal img { width: 42px; height: 42px; border-radius: 11px; }
.login-hero-conteudo { position: relative; z-index: 1; width: min(540px, 100%); margin: auto 0; }
.login-etiqueta { color: #ffb198; font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.login-hero h1 { margin: 19px 0; color: #fff; font-size: clamp(2.7rem, 4.7vw, 5rem); line-height: 1.01; letter-spacing: -.055em; }
.login-hero-conteudo > p { max-width: 500px; color: #c5cedd; font-size: 1.05rem; line-height: 1.65; }
.login-prova { display: flex; align-items: center; gap: 13px; width: fit-content; margin-top: 34px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.055); backdrop-filter: blur(4px); }
.login-prova > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; color: #fff; background: #ef673f; border-radius: 50%; font-weight: 800; }
.login-prova p { margin: 0; }
.login-prova strong, .login-prova small { display: block; }
.login-prova strong { color: #fff; font-size: .9rem; }
.login-prova small { margin-top: 3px; color: #aeb8c8; font-size: .76rem; }
.login-seguranca { position: relative; z-index: 1; margin: 0; color: #8995a8; font-size: .78rem; }

.login-painel { display: grid; place-items: center; padding: 42px clamp(26px, 6vw, 90px); background: #f5f6f8; }
.login-card { width: min(440px, 100%); }
.login-empresa { display: none; align-items: center; gap: 12px; margin-bottom: 24px; padding: 12px; border: 1px solid #e2e6ec; border-radius: 13px; background: #fff; }
#login-marca-logo { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; flex: 0 0 43px; overflow: hidden; border-radius: 10px; background: #f1f3f6; }
#login-marca-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-empresa small, .login-empresa strong { display: block; }
.login-empresa small { margin-bottom: 2px; color: #7b8595; font-size: .67rem; }
.login-empresa strong { color: #273146; font-size: .9rem; }
.login-cabecalho { margin-bottom: 29px; }
.login-boas-vindas { color: #d85a30; font-size: .72rem; font-weight: 800; letter-spacing: .11em; }
.login-cabecalho h2 { margin: 9px 0 7px; color: #20283a; font-size: 2.15rem; letter-spacing: -.045em; }
.login-cabecalho p { margin: 0; color: #6f7a8c; font-size: .9rem; }
#form-login { display: grid; gap: 18px; }
.login-campo label { margin: 0 0 8px; color: #414c60; font-size: .8rem; font-weight: 700; }
.login-campo input { min-height: 50px; padding: 12px 14px; border: 1px solid #dfe4eb; border-radius: 11px; background: #fff; color: #20283a; }
.login-campo input::placeholder { color: #9ca5b3; }
.login-campo input:focus { outline: none; border-color: #e16a47; box-shadow: 0 0 0 3px rgba(216,90,48,.12); }
.login-campo input[readonly] { color: #687386; background: #eef1f4; }
.login-email-linha { display: flex; align-items: center; gap: 8px; }
.login-email-linha input { flex: 1; min-width: 0; }
#btn-trocar-email { display: none; width: auto; height: 50px; margin: 0; padding: 0 14px; border: 1px solid #dfe4eb; border-radius: 11px; color: #687386; background: #fff; font-size: .78rem; }
#btn-trocar-email:hover { border-color: #e16a47; color: #c84e2a; background: #fff8f5; }
.login-etapa { display: none; }
.login-label-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.login-label-linha a { color: #c84e2a; font-size: .74rem; font-weight: 650; }
.login-senha { position: relative; }
.login-senha input { padding-right: 48px; }
.login-senha #btn-mostrar-senha { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; margin: 0; padding: 0; border-radius: 8px; background: transparent; }
.login-senha #btn-mostrar-senha:hover { background: #eef1f5; }
.login-ajuda { margin: 7px 0 0; color: #7b8595; font-size: .74rem; }
.erro:not(:empty) { margin: 0; padding: 11px 13px; border: 1px solid #fecaca; border-radius: 10px; color: #b42318; background: #fef2f2; font-size: .82rem; }
#btn-entrar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 51px; margin: 2px 0 0; border-radius: 11px; background: linear-gradient(135deg, #e96740, #d8522d); box-shadow: 0 8px 20px rgba(216,90,48,.2); }
#btn-entrar:hover { background: linear-gradient(135deg, #f1744e, #c94925); }
#btn-entrar span { font-size: 1.1rem; }
.login-google { margin: 0; }
.login-google[hidden] { display: none; }
.login-google-botao { display: flex; justify-content: center; min-height: 44px; }
.login-divisor-google { margin: 18px 0 18px; }
.login-divisor { display: flex; align-items: center; gap: 12px; margin: 27px 0 16px; color: #98a1ae; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }
.login-divisor::before, .login-divisor::after { content: ""; height: 1px; flex: 1; background: #e0e4ea; }
.login-cadastro { margin: 0 0 12px; color: #737e8f; font-size: .78rem; text-align: center; }
.login-criar { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid #d7dce4; border-radius: 11px; color: #344054; background: #fff; text-decoration: none; font-size: .86rem; font-weight: 700; transition: border-color .15s, background .15s; }
.login-criar:hover { border-color: #e16a47; color: #c84e2a; background: #fff8f5; }
.login-rodape { display: flex; justify-content: center; gap: 9px; margin-top: 24px; color: #9aa3b0; font-size: .68rem; }
.login-rodape a { color: #7b8595; }

@media (max-width: 820px) {
  .login-shell { display: block; }
  .login-hero { min-height: 0; padding: 24px 20px 29px; }
  .login-hero-conteudo { margin: 34px 0 0; }
  .login-hero h1 { margin: 13px 0; font-size: 2.25rem; }
  .login-hero-conteudo > p { margin: 0; font-size: .9rem; }
  .login-prova, .login-seguranca { display: none; }
  .login-painel { padding: 33px 20px 42px; }
  .login-cabecalho h2 { font-size: 1.8rem; }
}

:root.tema-escuro .login-page, :root.tema-escuro .login-painel { background: #111418; }
:root.tema-escuro .login-cabecalho h2, :root.tema-escuro .login-campo input { color: #f2f4f7; }
:root.tema-escuro .login-cabecalho p, :root.tema-escuro .login-cadastro { color: #99a3b2; }
:root.tema-escuro .login-campo label { color: #bec5d0; }
:root.tema-escuro .login-campo input, :root.tema-escuro #btn-trocar-email, :root.tema-escuro .login-criar, :root.tema-escuro .login-empresa { border-color: #343b46; background: #20252c; }
:root.tema-escuro .login-campo input[readonly] { background: #292e35; }
:root.tema-escuro #btn-trocar-email { color: #aeb6c2; }
:root.tema-escuro .login-criar { color: #e7eaf0; }
:root.tema-escuro .login-divisor::before, :root.tema-escuro .login-divisor::after { background: #303640; }
:root.tema-escuro .login-senha #btn-mostrar-senha:hover { background: #303640; }
:root.tema-escuro .login-empresa strong { color: #eef1f5; }
