/* Shared chrome for the three auth gateway pages (login, register,
   forgot-password). Pulls landing.html's navbar + footer styling so the
   auth surface reads as the same product as the marketing page.

   Loaded after sb-admin-2.min.css and orkidata-overrides.css; only adds
   page-layout helpers (.auth-shell, .auth-card, .auth-rail, .auth-form)
   and re-uses brand tokens from brand/tokens/brand.css.

   Intentional carry-overs from landing:
   - .navbar-landing rules (verbatim from landing.html inline <style>)
   - footer rules (verbatim from landing.html inline <style>)
   - body color baseline (#5a5c69) for legibility on light bg */

body {
  color: #5a5c69;
}

body.auth-bg {
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
  color: #2e2f3e;
}

/* Navbar — match landing.html exactly */
.navbar-landing {
  background-color: #fff;
  border-bottom: 1px solid #e3e6f0;
  padding: 0.75rem 0;
}
.navbar-landing .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ok-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-landing .navbar-brand img {
  width: 1.75rem;
  height: 1.75rem;
}

/* Auth shell: full-height container that holds the split card. The
   min-height calc subtracts navbar (~62px) and footer (~85px) so the
   card centers vertically on the visible area, not the full viewport. */
.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 62px - 85px);
  padding: 3rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 960px;
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(58, 59, 69, 0.06);
  overflow: hidden;
  display: flex;
}
.auth-card > .auth-rail,
.auth-card > .auth-form {
  flex: 1 1 50%;
  min-width: 0;
}

/* Brand rail: gradient block with white stacked-lockup centered. The
   align-items: center handles vertical centering at any rail height,
   so the lockup stays centered on register's tall layout (~560px) and
   login's short one (~360px) without floating. */
.auth-rail {
  background: var(--ok-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 480px;
}
.auth-rail img {
  width: 60%;
  max-width: 220px;
  height: auto;
}

/* Form column */
.auth-form {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form h1 {
  font-weight: 800;
  font-size: 1.75rem;
  color: #2e2f3e;
  margin-bottom: 0.5rem;
}
.auth-form .auth-sub {
  color: #858796;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.auth-form .form-group {
  margin-bottom: 1rem;
}
.auth-form label {
  font-weight: 600;
  color: #2e2f3e;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.auth-form .auth-meta {
  font-size: 0.9rem;
  color: #858796;
  margin-top: 1.25rem;
  text-align: center;
}
.auth-form .auth-meta a {
  font-weight: 600;
}

/* Footer — match landing.html exactly */
footer {
  padding: 2rem 0;
  color: #858796;
  font-size: 0.9rem;
  border-top: 1px solid #e3e6f0;
}
footer a {
  color: #858796;
  margin-left: 1rem;
}

@media (max-width: 767px) {
  .auth-shell {
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 62px - 85px);
  }
  .auth-card {
    flex-direction: column;
  }
  .auth-card > .auth-rail {
    /* Hide brand rail below 768px — same pattern sb-admin-2 used to hide
       its bg-login-image div. The navbar already carries enough brand. */
    display: none;
  }
  .auth-form {
    padding: 2rem 1.5rem;
  }
  .auth-form h1 {
    font-size: 1.5rem;
  }
}
