:root {
  --bg: #fff9ef;
  --text: #101537;
  --text2: #5b6075;
  --line: rgba(16, 21, 55, 0.22);
  --muted: #ece6d8;
  --navy: #101537;
  --cyan: #6fbfce;
  --cream: #fff9ef;
  --danger: #c5221f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #202124;
    --text: #e8eaed;
    --text2: #9aa0a6;
    --line: rgba(255, 255, 255, 0.18);
    --muted: #303134;
    --danger: #f28b7d;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* lado da marca: folha de projeto */
.marca {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  color: var(--cream);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(111, 191, 206, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 191, 206, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(111, 191, 206, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 191, 206, 0.05) 1px, transparent 1px);
  background-size:
    80px 80px,
    80px 80px,
    16px 16px,
    16px 16px;
}
.topo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 249, 239, 0.7);
}
.topo b {
  color: var(--cream);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.chamada {
  position: relative;
  z-index: 2;
  margin-top: 11vh;
}
.chamada h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.chamada p {
  margin: 12px 0 0;
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
}
.planta {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 720px;
  height: auto;
  z-index: 1;
}
.planta text {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
}
.planta .nome {
  font-size: 11.5px;
  fill: var(--cream);
  font-weight: 500;
}
.planta .desc {
  font-size: 10.5px;
  fill: rgba(255, 249, 239, 0.62);
}
.planta .num {
  font-size: 10.5px;
  fill: var(--cyan);
  letter-spacing: 0.12em;
}
@media (max-width: 860px) {
  .planta .cotas,
  .planta .chamadas,
  .planta circle,
  .planta text.num {
    display: none;
  }
}

/* formulário */
.lado {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
form,
.painel {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
}
.rot {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 18px;
}
h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sub {
  margin: 4px 0 34px;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text2);
}
label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.campo {
  position: relative;
  margin-bottom: 20px;
}
input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  transition: border-color 0.15s;
}
input:hover {
  border-color: var(--text2);
}
input::placeholder {
  color: #9a9fb0;
}
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: transparent;
}
.ajuda {
  font-size: 13px;
  color: var(--text2);
  margin: -4px 0 26px;
}
.ajuda b {
  color: var(--text);
  font-weight: 600;
}
button[type="submit"],
.btn {
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--muted);
  color: #a7a9b4;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
  transition:
    background 0.15s,
    color 0.15s;
}
button[type="submit"].pronto,
.btn.pronto {
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  button[type="submit"].pronto,
  .btn.pronto {
    background: var(--cyan);
    color: #101537;
  }
}
.cod {
  font-size: 24px;
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 14px;
}
.alt {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text2);
}
.alt a,
.lnk {
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
form[hidden] {
  display: none;
}
.erro {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  margin: -6px 0 16px;
}
.erro[hidden] {
  display: none;
}
.assinatura {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  font-size: 12.5px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo i {
  width: 26px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url(/d-mask.png) center / contain no-repeat;
  mask: url(/d-mask.png) center / contain no-repeat;
}

@media (max-width: 860px) {
  body {
    grid-template-columns: 1fr;
  }
  .marca {
    min-height: 0;
    padding: 24px 20px 120px;
  }
  .chamada {
    margin-top: 28px;
  }
  .chamada h2 {
    font-size: 44px;
  }
  .chamada p {
    font-size: 32px;
  }
  .topo span {
    display: none;
  }
  .planta .rot-planta {
    display: none;
  }
  .lado {
    padding: 32px 24px 48px;
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
  }
  .sub {
    font-size: 24px;
    margin-bottom: 26px;
  }
}

/* acessibilidade e extras */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: none;
  text-decoration: none;
}
.btn:focus-visible,
button[type="submit"]:focus-visible,
.lnk:focus-visible,
.tenant:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.aviso-info {
  font-size: 13px;
  color: var(--text2);
  margin: -4px 0 16px;
}
.aviso-info[hidden] {
  display: none;
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.tenants {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tenant {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 56px;
}
.tenant:hover {
  border-color: var(--text2);
}
.tenant[aria-current="true"] {
  border-color: var(--cyan);
}
.tenant .avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
}
.tenant .avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.tenant .nome-t {
  font-weight: 700;
  font-size: 15px;
  display: block;
}
.tenant .papel {
  font-size: 12px;
  color: var(--text2);
}
.sair {
  margin-top: 8px;
  align-self: center;
}

/* topo do painel provisório e componente de troca de tenant */
.pagina {
  grid-template-columns: 1fr;
  align-content: start;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.topbar .logo {
  font-size: 15px;
}
.topbar-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.provisorio {
  padding: 32px 16px;
  max-width: 640px;
}
