.map-login,.map-message {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.map-login {
  padding: 32px;
  border: 1px solid #bce8d1;
  border-top: 7px solid var(--map-green);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .12);
}

.map-login h2 {
  margin: 10px 0 6px;
  color: #111;
  font-size: 32px;
}

.map-login > p {
  margin: 0 0 24px;
  color: var(--map-muted);
}

.map-login form {
  display: grid;
  gap: 14px;
}

.map-login form p {
  margin: 0;
}

.map-login label {
  display: grid;
  gap: 7px;
  color: #1c1c1c;
  font-size: 13px;
  font-weight: 800;
}

.map-login input[type="text"],
.map-login input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cfd3d6;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.map-login input:focus {
  border-color: var(--map-green);
  outline: 3px solid rgba(22, 163, 100, .2);
}

.map-login .login-remember label {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.map-login input[type="submit"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--map-green);
  color: #fff;
  cursor: pointer;
  font: 800 15px/1 Inter, ui-sans-serif, system-ui;
}

.map-login button[type="submit"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--map-green);
  color: #fff;
  cursor: pointer;
  font: 800 15px/1 Inter, ui-sans-serif, system-ui;
}

.map-password-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.map-password-notice-error {
  background: #fff0f0;
  color: #9f1d1d;
}

.map-password-notice-success {
  background: #eaf8f1;
  color: var(--map-green-dark);
}

.map-message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.map-login-switch {
  display: inline-block;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--map-green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.map-login-switch-secondary {
  background: #111;
}

.map-login input[type="submit"]:hover {
  background: var(--map-green-dark);
}

/* O tema inclui um rodape demonstrativo por padrao. Nas telas do portal,
   a navegacao deve terminar no conteudo do Modo Fitness. */
footer.wp-block-template-part,
.wp-site-blocks > footer {
  display: none !important;
}

header.wp-block-template-part,
.wp-site-blocks > header {
  display: none !important;
}

/* O portal ja possui titulo e identidade proprios. */
.wp-block-post-title,
.entry-title {
  display: none !important;
}

body.admin-bar .map-portal,
body.admin-bar .map-login,
body.admin-bar .map-message {
  margin-top: 0;
}

.map-iframe-frame {
  position: relative;
  width: 100%;
  height: 620px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
}

.map-iframe-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 620px;
  margin: 0;
  border-radius: 0;
  transform-origin: top left;
}

@media (max-width: 680px) {
  .map-login,
  .map-message {
    margin: 18px auto;
    padding: 24px;
  }

  .map-iframe-frame {
    height: 700px;
  }

  .map-iframe-frame iframe {
    width: 160%;
    height: 1120px;
    transform: scale(.625);
  }
}
