/* ==========================================================================
   Big Easy Siding — the sign-in screen.

   The whole viewport is a wall of lap siding, drawn in CSS rather than loaded
   as an image: repeating bevels for the boards, a faint vertical seam where
   two runs butt together, and warm light spilling in from the top left. The
   form sits in the middle of that wall in a white card framed like a window.

   WordPress' own form markup is untouched — everything here is presentation.
   ========================================================================== */

:root {
  --bes-ink: #0F2842;
  --bes-deep: #02345F;
  --bes-navy: #0A1D32;
  --bes-gold: #FDBE31;
  --bes-gold-dk: #E9A912;
  --bes-line: #DDE5EF;
  --bes-soft: #4A5D72;
  --bes-board: 46px;      /* one course of siding */
}

/* ---------------------------------------------------------------- the wall */

body.login {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: var(--bes-navy);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Layered top to bottom: sunlight, board seams, the boards themselves.
     The light is a warm white rather than the brand gold — gold at low opacity
     over this navy mixes to olive. */
  background-image:
    radial-gradient(1150px 640px at 8% -14%, rgba(255, 228, 176, 0.16) 0%, rgba(255, 228, 176, 0) 60%),
    radial-gradient(900px 700px at 96% 108%, rgba(2, 52, 95, 0.55) 0%, rgba(2, 52, 95, 0) 60%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 1px, rgba(0, 0, 0, 0) 1px 340px),
    repeating-linear-gradient(180deg,
      rgba(255, 255, 255, 0.075) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      rgba(255, 255, 255, 0) 3px,
      rgba(255, 255, 255, 0) calc(var(--bes-board) - 8px),
      rgba(0, 0, 0, 0.14) calc(var(--bes-board) - 5px),
      rgba(0, 0, 0, 0.40) var(--bes-board));
  background-attachment: fixed;
}

/* An optional photo from Theme Settings sits behind the wall, dimmed, so the
   siding still reads over it. */
body.login::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--bes-login-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

/* ------------------------------------------------------------- brand block */

.bes-login-brand {
  width: 100%;
  max-width: 400px;
  margin: 0 0 22px;
  text-align: center;
}

.bes-login-brand__logo { display: inline-block; margin: 0 0 18px; }
.bes-login-brand__logo img { width: 132px; height: auto; }

.bes-login-brand__title {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.bes-login-brand__line {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.70);
}

/* --------------------------------------------------------------- the card */

/* WordPress' own logo heading only — scoped to #login so the brand block's
   own <h1> above the card is not swept up with it. */
body.login #login h1 { display: none; }

body.login #login {
  width: 100%;
  max-width: 400px;
  padding: 0;
  margin: 0;
}

body.login #loginform,
body.login #lostpasswordform,
body.login #resetpasswordform,
body.login #registerform {
  position: relative;
  margin: 0;
  padding: 26px 26px 24px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 28px 60px -22px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* The gold sill along the top of the card. */
body.login #loginform::before,
body.login #lostpasswordform::before,
body.login #resetpasswordform::before,
body.login #registerform::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--bes-gold) 0%, var(--bes-gold-dk) 100%);
}

/* ------------------------------------------------------- message above form */

.bes-login-intro {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}

.bes-login-intro h2 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bes-gold);
}

.bes-login-intro p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

/* WordPress' own notice boxes, restyled to sit on the wall. */
body.login .notice,
body.login #login_error,
body.login .message {
  max-width: 400px;
  margin: 0 auto 14px;
  border: 0;
  border-left: 4px solid var(--bes-gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
  font-size: 13.5px;
  color: var(--bes-ink);
}

/* --------------------------------------------------------------- the form */

body.login form .forgetmenot { font-weight: 500; }

body.login label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bes-soft);
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  width: 100%;
  margin: 6px 0 18px;
  padding: 13px 14px;
  border: 1.5px solid var(--bes-line);
  border-radius: 8px;
  background: #F8FAFD;
  font-size: 15.5px;
  color: var(--bes-ink);
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
  border-color: var(--bes-deep);
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(2, 52, 95, 0.14);
}

body.login .wp-pwd { position: relative; }
body.login .wp-pwd input[type="password"],
body.login .wp-pwd input[type="text"] { padding-right: 46px; }

body.login button.wp-hide-pw {
  top: 5px;
  right: 2px;
  width: 42px;
  height: 46px;
  color: var(--bes-soft);
}
body.login button.wp-hide-pw:hover { color: var(--bes-deep); }
body.login button.wp-hide-pw:focus { outline: 0; box-shadow: none; color: var(--bes-deep); }

body.login .submit { margin: 0; }

body.login .button-primary,
body.login #wp-submit {
  width: 100%;
  height: auto;
  float: none;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--bes-gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--bes-navy);
  text-shadow: none;
  box-shadow: 0 6px 16px -8px rgba(233, 169, 18, 0.9);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

body.login .button-primary:hover,
body.login #wp-submit:hover {
  background: var(--bes-gold-dk);
  box-shadow: 0 10px 22px -10px rgba(233, 169, 18, 0.95);
}
body.login .button-primary:active,
body.login #wp-submit:active { transform: translateY(1px); }
body.login .button-primary:focus-visible,
body.login #wp-submit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

body.login .forgetmenot label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bes-soft);
}

body.login input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #C4D2E2;
}
body.login input[type="checkbox"]:checked {
  background: var(--bes-deep);
  border-color: var(--bes-deep);
}
/* A white tick drawn with two borders, so no icon font or mask is needed. */
body.login input[type="checkbox"]:checked::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 5px;
  height: 10px;
  margin: 1px 0 0 5px;
  background: none;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --------------------------------------------------- links under the card */

body.login #nav,
body.login #backtoblog {
  margin: 0;
  padding: 0;
  text-align: center;
}

body.login #nav { margin-top: 18px; }

body.login #nav a,
body.login #backtoblog a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 1px;
}
body.login #nav a:hover,
body.login #backtoblog a:hover { color: var(--bes-gold); border-bottom-color: var(--bes-gold); }

/* WordPress' own "Go to site" link duplicates ours below the card. */
body.login #backtoblog { display: none; }

body.login .privacy-policy-page-link { margin: 16px 0 0; }
body.login .privacy-policy-page-link a { color: rgba(255, 255, 255, 0.55); font-size: 12.5px; }

/* --------------------------------------------------------------- the foot */

.bes-login-foot {
  width: 100%;
  max-width: 400px;
  margin: 26px 0 0;
  text-align: center;
}

.bes-login-foot__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bes-gold);
  text-decoration: none;
}
.bes-login-foot__back:hover { color: #fff; }
.bes-login-foot__back svg { width: 16px; height: 16px; }

.bes-login-foot__copy {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* ------------------------------------------------------------- responsive */

@media screen and (max-width: 480px) {
  body.login { padding: 28px 16px; --bes-board: 38px; }
  .bes-login-brand__title { font-size: 27px; }
  .bes-login-brand__logo img { width: 110px; }
  body.login #loginform,
  body.login #lostpasswordform,
  body.login #resetpasswordform,
  body.login #registerform { padding: 22px 20px 20px; }
  /* fixed attachment janks badly on mobile browsers */
  body.login { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  body.login *,
  body.login *::before { transition: none !important; animation: none !important; }
}
