/* Base page */
html,
body.login {
  height: 100%;
  margin: 0;
}

body.login {
  overflow: hidden;
}

body.login {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Hide WP logo and default nav */
body.login .login h1 { display: none; }
body.login #backtoblog,
body.login #nav { display: none; }

/* Let our wrapper control layout */
body.login #login {
  width: auto;
  margin: 0;
  padding: 0;
}

/* Main grid */
.forage-auth-page {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.forage-auth-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px 28px;
}

.forage-auth-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.forage-auth-nav {
  display: grid;
  grid-auto-flow: column;
  gap: 18px;
}

.forage-auth-nav a {
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
}

/* Two column layout */
.forage-auth-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

/* Left panel */
.forage-auth-left {
  background: #bdb3a7;
  color: #ffffff;
  background-size: cover;
  background-position: center center;
}

.forage-left-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 44px 48px;
  gap: 18px;
}

.forage-brand {
  /*display: grid;*/
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.forage-brand-mark {
  font-size: 18px;
  opacity: 0.9;
  display: none;
}

.forage-left-copy h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  max-width: 520px;
  text-align: left;
}

.forage-left-media {
  display: grid;
  align-content: end;
}

.forage-left-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
}

.forage-left-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
}

/* Right panel */
.forage-auth-right {
  background: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: 20% 28px 44px 28px;
}

.forage-right-top {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #0f172a;
}

.forage-switch-link {
  color: #5C3A21;
  text-decoration: none;
  font-weight: 600;
}

/* Center the form block using grid */
.forage-form-shell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}

.forage-form-title h2 {
  margin: 0;
  font-size: 26px;
  color: #0f172a;
  font-weight: 700;
}

/* WP form container */
.forage-form-wrap {
  width: min(460px, 100%);
}

/* Strip WP defaults and restyle inputs */
.forage-form-wrap #loginform,
.forage-form-wrap #registerform,
.forage-form-wrap #lostpasswordform {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.forage-form-wrap label {
  color: #0f172a;
  font-size: 13px;
}

.forage-form-wrap .input {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 12px 12px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: none;
}

.forage-form-wrap .button-primary {
  border-radius: 12px;
  border: 0;
  background: #5C3A21;
  padding: 12px 14px;
  box-shadow: none;
  text-shadow: none;
  font-weight: 600;
}

.forage-form-wrap .forgetmenot {
  font-size: 13px;
}

.forage-form-wrap p.submit {
  margin-top: 14px;
}

/* Make the WP generated #login div not fight our layout */
.forage-form-wrap #login {
  display: block;
}

/* Mobile */
@media (max-width: 980px) {
  .forage-auth-main {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh 1fr;
  }

  .forage-auth-left {
    min-height: 0;
  }

  .forage-left-inner {
    padding: 28px;
  }

  .forage-auth-right {
    padding: 28px;
  }
}

.login h1 a{
    display: none !important;
}

.notice-info{
    display: none !important;
}

.dashicons{
    color: #5C3A21 !important;
}

.wp-core-ui .button.button-large:hover{
    background-color: #0c0c0c !important;
}


/* Slow background crossfade for left panel */
.forage-auth-left {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.forage-bg-stack {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: calc(100vh - 64px);
}

.forage-bg-slide {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 5000ms ease;
  filter: saturate(0.95) contrast(0.95);
}

.forage-bg-slide.is-active {
  opacity: 1;
}

.forage-left-inner {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
}

/* Soft readability layer without absolute positioning */
.forage-left-inner {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.30),
    rgba(0,0,0,0.10)
  );
  border-radius: 0;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  .forage-bg-slide {
    transition: none;
  }
}