* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --verde-principal: #0b6b57;
  --verde-escuro: #075645;
  --verde-borda: #1d5b4f;
  --verde-suave: #edf5ed;
  --texto-principal: #1c3b34;
  --texto-secundario: #5f5f5f;
  --branco: #ffffff;
  --erro: #c62828;
  --sucesso: #18733d;
  --sombra-card: 0 14px 35px rgba(0, 0, 0, 0.14);
}

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at center, rgba(157, 210, 159, 0.14), transparent 32%),
    linear-gradient(135deg, #f9fbf8 0%, #eef5ec 100%);
  color: var(--texto-principal);
}

.page-wrapper {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(122, 187, 126, 0.14), transparent 25%);
  z-index: 1;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  position: relative;
  z-index: 2;
}

.login-content {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-area {
  text-align: center;
  margin-bottom: 26px;
}

.logo {
  width: 360px;
  max-width: 95%;
  object-fit: contain;
}

.login-card {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(29, 91, 79, 0.14);
  border-radius: 22px;
  box-shadow: var(--sombra-card);
  padding: 28px 22px 24px;
  backdrop-filter: blur(6px);
}

.login-card h1 {
  font-size: 1.03rem;
  text-align: center;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--texto-principal);
}

#loginForm,
#loginAdminForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  height: 48px;
  border: 2px solid var(--verde-borda);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.input-icon {
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--texto-principal);
  font-size: 1.08rem;
  margin-right: 10px;
}

.input-group input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--texto-principal);
  font-size: 0.97rem;
}

.input-group input::placeholder {
  color: #707070;
}

#loginButton {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--verde-principal), var(--verde-escuro));
  color: var(--branco);
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(11, 107, 87, 0.28);
  transition: 0.2s ease;
  margin-top: 4px;
}

#loginButton:hover {
  transform: translateY(-1px);
}

#loginButton:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.message {
  min-height: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.message.error {
  color: var(--erro);
}

.message.success {
  color: var(--sucesso);
}

.helper-link {
  text-align: center;
  color: var(--texto-principal);
  text-decoration: underline;
  font-size: 0.95rem;
  margin-top: 2px;
}

.support-text {
  text-align: center;
  color: #111;
  font-size: 0.97rem;
}

.footer-info {
  margin-top: 110px;
  text-align: center;
  font-size: 0.87rem;
  color: #1e1e1e;
  line-height: 1.5;
}

.decor {
  position: absolute;
  border: 1px solid rgba(98, 156, 103, 0.18);
  z-index: 0;
}

.decor-left {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: 80px;
  transform: rotate(35deg);
  border-radius: 24px;
}

.decor-right {
  width: 320px;
  height: 320px;
  right: -110px;
  top: 70px;
  transform: rotate(35deg);
  border-radius: 24px;
}

@media (max-width: 768px) {
  .logo {
    width: 280px;
  }

  .footer-info {
    margin-top: 60px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    max-width: 100%;
    padding: 22px 18px;
  }

  .login-card h1 {
    font-size: 0.97rem;
  }

  .footer-info {
    margin-top: 40px;
  }
}