@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  src: url(https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVc.ttf) format('truetype');
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
}

.gmodelo-font,
body.gmodelo-login {
  font-family: 'Segoe UI', 'Open Sans', Arial, sans-serif;
}

body.gmodelo-login {
  min-height: 100vh;
  background-position: center;
  overflow: hidden;
}

.gmodelo-bloqueio {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  text-align: center;
  outline: none;
  transition: opacity 0.2s linear;
}

.gmodelo-bloqueio.show {
  opacity: 1;
}

.gmodelo-modal {
  position: fixed;
  max-height: 100%;
}

#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 24rem;
  max-height: 100vh;
  height: auto;
  padding: 32px 28px;
  overflow-y: auto;
  color: #0f172a;
  font-size: 14px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  box-shadow: 0 35px 80px -30px rgba(15, 23, 42, 0.6);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@supports not (backdrop-filter: blur(1px)) {
  #modal {
    background: rgba(255, 255, 255, 0.92);
  }
}

#logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.logo-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 25px 45px -25px rgba(20, 235, 20, 0.6);
}

#logo {
  max-width: 100%;
  height: auto;
}

.login-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
}

.login-subtitle {
  color: #475467;
  font-size: 0.95rem;
}

.login-divider {
  width: 100%;
  margin: 1rem 0 0;
  border: 0;
  border-top: 1px solid rgba(71, 84, 103, 0.5);
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  text-align: left;
}

.campo label {
  width: 100%;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
}

.campo-acoes {
  margin-top: 8px;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  color: #ffffff;
  font-family: 'Segoe UI', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #14eb14, #12d312);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 20px 35px -18px rgba(20, 235, 20, 0.6);
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.botao:hover {
  background: linear-gradient(135deg, #2ced2c, #12d312);
  box-shadow: 0 25px 40px -18px rgba(20, 235, 20, 0.7);
  transform: translateY(-1px) scale(1.01);
}

.botao:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(0) scale(0.99);
}

.botao:focus-visible {
  outline: 3px solid rgba(20, 235, 20, 0.45);
  outline-offset: 3px;
}

.inputcampo {
  width: 100%;
  height: 46px !important;
  margin-top: 3px;
  padding: 0 14px;
  color: #0f172a;
  font-family: 'Segoe UI', 'Open Sans', Arial, sans-serif !important;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.inputcampo::placeholder {
  color: rgba(71, 84, 103, 0.65);
}

.inputcampo:focus {
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(20, 235, 20, 0.25);
  outline: none;
}

#mensagem {
  display: none;
  width: 100%;
  min-height: 32px;
  margin-top: 4px;
  padding: 10px 14px;
  color: #ef4444;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 12px;
}

#lembrarLogin,
#cadastre_se {
  width: 100%;
  color: #1b1917;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

#cadastre_se {
  margin-top: 5px;
}

@media (max-width: 480px) {
  body.gmodelo-login {
    overflow: auto;
  }

  #modal {
    width: calc(100% - 24px);
    padding: 24px 20px;
    border-radius: 18px;
  }
}
