/* =====================================================
   ENVIRO LOGIN — SAVVY-STYLE (THEME IMMUNE)
===================================================== */

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hide theme header/title/footer on auth page */
body.enviro-auth-page header,
body.enviro-auth-page footer,
body.enviro-auth-page .page-title,
body.enviro-auth-page h1.entry-title {
  display: none !important;
}

body.enviro-auth-page {
  overflow: hidden;
}

/* Background */
.enviro-login-bg {
  position: fixed;
  inset: 0;
  background: url("/wp-content/uploads/login-bg.jpg") center / cover no-repeat;
  z-index: 0;
}

/* Fullscreen wrapper */
.enviro-login-wrap {
    position: relative;
    color: #ffffff;

    /* ✅ allow header/footer to exist */
    min-height: calc(100vh - 120px);

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Hero layout */
.enviro-login-hero {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;

  /* ✅ CENTER BOTH TOGETHER */
  align-items: center;
  justify-content: center;

  gap: 100px;
  padding: 0 60px;
  box-sizing: border-box;
}

/* Left card container */
.enviro-login-left {
  width: 380px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  box-sizing: border-box;
}

/* Views */
.enviro-auth-view { display: none; }
.enviro-auth-view.active { display: block; }

.enviro-auth-view h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 22px 0;
  color: #fff;
}

/* Inputs */
.enviro-auth-view input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: 6px;
  color: #fff;
  caret-color: #fff;
  box-sizing: border-box;
}

.enviro-auth-view input,
.enviro-auth-view input:focus,
.enviro-auth-view input:-webkit-autofill {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s;
  outline: none;
}

/* Buttons */
.enviro-auth-view button {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  background: #ffffff;
  color: #2c3e2f;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Links */
.enviro-auth-links {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
}

.enviro-auth-links a {
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
}

.enviro-auth-links span {
  margin: 0 8px;
  opacity: 0.6;
}

/* Message */
.enviro-auth-message {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.enviro-auth-message.error {
  display: block;
  background: rgba(198,40,40,0.35);
  border: 1px solid rgba(198,40,40,0.6);
}
.enviro-auth-message.success {
  display: block;
  background: rgba(26,163,74,0.25);
  border: 1px solid rgba(26,163,74,0.55);
}

/* Right headline (restore + force visible) */
.enviro-login-right {
  display: block !important;
  max-width: 560px;
  z-index: 2;
}

.enviro-login-right h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Mobile */
@media (max-width: 900px) {
  .enviro-login-hero {
    flex-direction: column;
    justify-content: center;
    padding: 40px 22px;
    gap: 24px;
  }
  .enviro-login-right { display: none !important; }
  .enviro-login-left { width: 100%; max-width: 420px; }
}

