/* MEGA — Login e recuperação de senha
 * Layout: card único branco sobre fundo institucional Electa.
 */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.login-page {
  min-height: 100vh;
  margin: 0;
  padding: 34px 24px 76px;
  background:
    linear-gradient(
      145deg,
      #0a6050 0%,
      #1d9389 58%,
      #1c846f 100%
    );
  color: #0f3939;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(520px, 100%);
  padding: 38px 46px 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 24px 60px rgba(0, 35, 55, 0.24);
}

.login-brand {
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e3e3;
  text-align: center;
}

.mega-login-logo {
  display: block;
  width: min(310px, 82%);
  height: auto;
  margin: 0 auto;
}

.login-content {
  padding-top: 29px;
}

.login-panel-label {
  color: #1d9389;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-content h1 {
  margin: 7px 0 0;
  color: #0f3939;
  font-size: 27px;
  line-height: 1.2;
}

.login-panel-subtitle {
  margin: 8px 0 7px;
  color: #3b524c;
  font-size: 12px;
  line-height: 1.55;
}

.login-content label {
  display: block;
  margin: 17px 0 7px;
  color: #0f3939;
  font-size: 12px;
  font-weight: 700;
}

.login-content input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #cbe2e0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f3939;
  font: inherit;
  font-size: 14px;
}

.login-content input:focus {
  border-color: #1d9389;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(29, 147, 137, 0.14);
}

.login-password-heading {
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-password-heading label {
  margin: 0;
}

.login-password-heading a,
.login-back-link {
  color: #1d9389;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.login-password-heading a:hover,
.login-back-link:hover {
  text-decoration: underline;
}

.login-content button,
.login-secondary-button {
  width: 100%;
  min-height: 45px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: #1d9389;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-content button:hover {
  background: #0a6050;
}

.login-secondary-button {
  border: 1px solid #1d9389;
  background: #ffffff;
  color: #1d9389;
}

.login-secondary-button:hover {
  background: #cbe2e0;
}

.login-message {
  margin-top: 16px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.login-message.error {
  border: 1px solid #ff6b35;
  background: #fff5f5;
  color: #d03223;
}

.login-message.success {
  border: 1px solid #91ba7f;
  background: #f0fff4;
  color: #0a6050;
}

.login-support {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid #e3e3e3;
  color: #3b524c;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.login-back-link {
  display: block;
  margin-top: 17px;
  text-align: center;
}

.login-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.electa-corner-logo {
  position: fixed;
  right: 23px;
  bottom: 18px;
  width: 145px;
  height: auto;
  opacity: 0.96;
  pointer-events: none;
}

@media (max-width: 640px) {
  body.login-page {
    padding: 20px 16px 70px;
    place-items: start center;
  }

  .login-card {
    padding: 30px 24px 34px;
    border-radius: 14px;
  }

  .mega-login-logo {
    width: min(285px, 88%);
  }

  .electa-corner-logo {
    right: 15px;
    bottom: 13px;
    width: 112px;
  }
}

@media (max-width: 420px) {
  .login-card {
    padding: 27px 20px 31px;
  }

  .login-password-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  }
