* { box-sizing: border-box; }

:root {
  color-scheme: light;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1d2b17;
  background: #12470f;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 18% 15%, #5cb22142 0%, transparent 48%),
    radial-gradient(ellipse at 90% 90%, #2d810b7a 0%, transparent 55%),
    linear-gradient(150deg, #246e12, #123e12);
}

.login { width: min(100%, 440px); }
.marca { text-align: center; margin-bottom: 26px; }
.marca img {
  display: block;
  width: min(290px, 86%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 7px 10px #0625053d);
}
.marca p {
  margin: 12px 0 0;
  color: #e8f5d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.login-card {
  padding: 34px 34px 18px;
  border: 1px solid #ffffffa6;
  border-radius: 22px;
  background: #fffefb;
  box-shadow: 0 20px 60px #05270447;
}
.login-intro { margin-bottom: 28px; }
.acesso {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  color: #376218;
  background: #edf5e5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.25px;
}
h1 { margin: 14px 0 8px; color: #204b16; font-size: 26px; line-height: 1.2; letter-spacing: -0.6px; }
.login-intro p { margin: 0; color: #65715f; font-size: 14px; line-height: 1.5; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.campo { margin-bottom: 19px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #37432f; }
input, button { font: inherit; }
input {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1.5px solid #cdd9c6;
  border-radius: 10px;
  background: #fbfdf9;
  color: #1d2b17;
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder { color: #7a8374; font-size: 14px; }
input:focus { outline: none; border-color: #2f8b16; box-shadow: 0 0 0 3px #2f9e0d20; }
input[aria-invalid="true"] { border-color: #b33026; }
.senha-campo { position: relative; }
.senha-campo input { padding-right: 88px; }
.mostrar-senha {
  position: absolute;
  right: 4px;
  top: 3px;
  bottom: 3px;
  min-width: 77px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #286413;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mostrar-senha:hover { background: #eaf3e4; }
button:focus-visible { outline: 3px solid #38781d; outline-offset: 3px; }
.entrar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 26px;
  padding: 12px 15px;
  border: 1px solid #2b830d;
  border-radius: 10px;
  background: linear-gradient(120deg, #338f10, #21740a);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 12px #266c1126;
  transition: background 150ms ease, transform 150ms ease;
}
.entrar:hover { background: #1d6907; }
.entrar:active { transform: translateY(1px); }
.seta { font-size: 21px; line-height: 1; }
fieldset:disabled input { opacity: 0.72; }
button:disabled { cursor: wait; }
.entrar:disabled { background: #497e34; border-color: #497e34; box-shadow: none; transform: none; }
.feedback { min-height: 34px; margin: 16px 0 0; font-size: 13px; line-height: 1.45; color: #4e633f; }
.feedback.erro { color: #a22820; }
.sem-script { color: #a22820; font-size: 13px; line-height: 1.5; }
.rodape { text-align: center; color: #e0eed6; margin: 24px 0 0; font-size: 12px; }
.rodape span { margin: 0 7px; color: #dbe356; }
.somente-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.spinner { width: 16px; height: 16px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: girar 700ms linear infinite; }
[hidden] { display: none !important; }
@keyframes girar { to { transform: rotate(360deg); } }

@media (max-width: 420px) {
  body { padding: 28px 16px; }
  .login-card { padding: 28px 22px 14px; border-radius: 18px; }
  h1 { font-size: 24px; }
  .marca { margin-bottom: 22px; }
  .marca img { width: 250px; max-width: 86%; }
}

@media (prefers-reduced-motion: reduce) {
  input, .entrar { transition: none; }
  .spinner { animation: none; }
}
