:root {
  color-scheme: light;
  --preto: #251f21;
  --preto-profundo: #171416;
  --roxo: #43246a;
  --verde: #00a856;
  --vermelho: #ec1d25;
  --laranja: #e78c39;
  --azul: #1c3168;
  --texto-suave: #756d70;
  --borda: #e5e0e1;
  --fundo: #f3f1f1;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--preto);
  background: var(--fundo);
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}
button, input { font: inherit; }

.login-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: min(720px, calc(100vh - 64px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--borda);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(37, 31, 33, .12);
}

.marca-painel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  color: #fff;
  overflow: hidden;
  background: var(--preto);
}
.marca-painel::after {
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  content: "";
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.02);
}
.marca-painel > div { position: relative; z-index: 1; }
.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--laranja);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.marca-painel h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.marca-painel p {
  max-width: 470px;
  margin: 22px 0 0;
  color: #d5ced0;
  font-size: 17px;
  line-height: 1.55;
}
.cores-marca {
  position: absolute !important;
  left: 56px;
  bottom: 56px;
  display: flex;
  gap: 10px;
}
.cores-marca i { width: 42px; height: 5px; border-radius: 999px; background: var(--roxo); }
.cores-marca i:nth-child(2) { background: var(--verde); }
.cores-marca i:nth-child(3) { background: var(--vermelho); }
.cores-marca i:nth-child(4) { background: var(--laranja); }
.cores-marca i:nth-child(5) { background: var(--azul); }

.acesso-painel {
  display: grid;
  place-items: center;
  padding: 56px;
  background: #fff;
}
.acesso-conteudo { width: min(100%, 390px); }
.logo-acesso {
  width: min(250px, 100%);
  height: auto;
  margin-bottom: 20px;
  margin-left: -12px;
  display: block;
}
.acesso-conteudo h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.035em;
}
.acesso-conteudo .kicker { color: var(--roxo); }
.subtitulo { margin: 10px 0 32px; color: var(--texto-suave); }
form { display: grid; }
label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 750;
}
label:not(:first-child) { margin-top: 20px; }
.campo {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.campo:focus-within {
  border-color: var(--roxo);
  box-shadow: 0 0 0 4px rgba(67, 36, 106, .1);
}
.campo > i { color: #92898c; font-size: 20px; }
.campo input {
  min-width: 0;
  flex: 1;
  padding: 14px 0;
  color: var(--preto);
  border: 0;
  outline: 0;
  background: transparent;
}
.mostrar-senha {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--texto-suave);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.mostrar-senha:hover { color: var(--roxo); background: #f1ecf5; }
.erro-login {
  margin-top: 18px;
  padding: 11px 13px;
  color: #9e1118;
  border: 1px solid #f4bec0;
  border-radius: 9px;
  background: #fdebec;
  font-size: 13px;
}
.botao-entrar {
  min-height: 52px;
  margin-top: 24px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: var(--preto);
  box-shadow: 0 10px 24px rgba(37, 31, 33, .18);
  cursor: pointer;
  font-weight: 750;
}
.botao-entrar:hover { background: #40383b; }
.botao-entrar:focus-visible, .mostrar-senha:focus-visible {
  outline: 3px solid rgba(231, 140, 57, .55);
  outline-offset: 2px;
}
.botao-entrar:disabled { cursor: wait; opacity: .65; }

@media (max-width: 820px) {
  .login-shell {
    width: min(620px, calc(100% - 28px));
    min-height: auto;
    margin: 14px auto;
    grid-template-columns: 1fr;
  }
  .marca-painel { min-height: 285px; padding: 34px; }
  .marca-painel h1 { max-width: 470px; font-size: 34px; }
  .marca-painel p { margin-top: 14px; font-size: 15px; }
  .cores-marca { left: 34px; bottom: 34px; }
  .acesso-painel { padding: 42px 34px 48px; }
}

@media (max-width: 430px) {
  .login-shell { width: calc(100% - 18px); border-radius: 18px; }
  .marca-painel { min-height: 245px; padding: 26px 24px; }
  .marca-painel h1 { font-size: 29px; }
  .marca-painel p { display: none; }
  .cores-marca { left: 24px; bottom: 26px; gap: 6px; }
  .cores-marca i { width: 31px; }
  .acesso-painel { padding: 34px 24px 38px; }
  .logo-acesso { width: min(230px, 100%); margin-bottom: 18px; }
  .acesso-conteudo h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
