body.login-screen {
  background: #0b110f;
  color: #f4f8f3;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.home-toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 34px;
  margin: -8px -8px 4px;
}

.btn-sair {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: transparent;
  color: #ffffff;
  padding: 8px 18px;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.btn-sair:hover,
.btn-sair:focus-visible {
  border-color: #77d93d;
  background: rgba(119, 217, 61, .12);
  transform: translateY(-1px);
}

body.login-screen::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 560px;
  height: 560px;
  top: -260px;
  right: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 210, 86, .24), transparent 68%);
}

.login-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  padding: clamp(28px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(340px, .64fr);
  align-items: center;
  gap: clamp(36px, 8vw, 120px);
}

.login-brand {
  max-width: 510px;
  animation: login-rise .7s ease both;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #86d644;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.login-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: #70d236;
}

.login-brand h1 {
  color: #f7faf6;
  font-family: "Trebuchet MS", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: .92;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}

.login-brand h1 span {
  color: #68d631;
  display: block;
}

.login-brand p {
  color: #aebcb1;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
  max-width: 410px;
}

.login-mark {
  width: min(100%, 430px);
  margin-top: 42px;
  opacity: .96;
}

.login-panel {
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(135, 218, 86, .23);
  border-radius: 28px;
  background: rgba(20, 29, 24, .9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.05);
  animation: login-rise .7s .12s ease both;
}

.login-panel h2 {
  color: #f7faf6;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.login-panel > p {
  color: #9caf9f;
  line-height: 1.5;
  margin-bottom: 28px;
}

.login-field {
  display: block;
  margin-bottom: 17px;
}

.login-field span {
  display: block;
  color: #cfe3cd;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  border: 1px solid #34473a;
  border-radius: 13px;
  background: #111b15;
  color: #fff;
  font-size: 1.05rem;
  padding: 15px 16px;
  outline: none;
}

.login-field input:focus {
  border-color: #79db40;
  box-shadow: 0 0 0 4px rgba(121, 219, 64, .12);
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  background: #72d63b;
  color: #122014;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.login-submit:hover,
.login-submit:focus-visible {
  background: #8be854;
  box-shadow: 0 10px 25px rgba(114, 214, 59, .22);
  transform: translateY(-2px);
}

.login-error {
  min-height: 22px;
  color: #ffb5a8;
  font-size: .86rem;
  line-height: 1.4;
  margin: 13px 0 0;
}

.login-install {
  display: none;
  width: 100%;
  margin-top: 14px;
  border: 1px solid #3a5440;
  border-radius: 13px;
  background: transparent;
  color: #cfe3cd;
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
}

.login-install.is-visible { display: block; }

.login-footer {
  color: #718476;
  font-size: .78rem;
  line-height: 1.5;
  margin-top: 27px;
  padding-top: 17px;
  border-top: 1px solid rgba(190, 220, 190, .12);
}

@keyframes login-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  body.login-screen { overflow: auto; }
  .login-shell {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 34px;
    padding: 34px 22px;
  }
  .login-brand h1 { font-size: clamp(2.6rem, 14vw, 4.6rem); }
  .login-mark { width: min(78%, 330px); margin-top: 28px; }
  .login-panel { justify-self: stretch; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .login-brand, .login-panel { animation: none; }
}
