/* ============================================
   BJ 2.0 — Login Page Styles
   ============================================ */

/* ============================
   Login Page (.bj-login)
   ============================ */

/* ========== Login: Mini Hero ========== */
.bj20-page .bj-login-hero {
  position: relative;
  width: 100%;
  height: clamp(220px, 33vh, 360px);
  overflow: hidden;
}
.bj20-page .bj-login-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.bj20-page .bj-login-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--color-black-rgb),0.35) 0%,
    rgba(var(--color-black-rgb),0.50) 100%
  );
  z-index: 1;
}
.bj20-page .bj-login-hero__content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.bj20-page .bj-login-hero__content .bj-section__label {
  color: var(--color-accent);
  margin-bottom: 12px;
}
.bj20-page .bj-login-hero__heading {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 42px);
  color: var(--color-bg);
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-shadow: 0 2px 16px rgba(var(--color-black-rgb),0.3);
}

/* ========== Login: Entry Section ========== */
.bj20-page .bj-login-entry {
  background: var(--color-bg);
  padding: var(--section-py) 40px;
  text-align: center;
}
.bj20-page .bj-login-entry__inner {
  max-width: var(--content-w);
  margin: 0 auto;
}
.bj20-page .bj-login-entry__lead {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: var(--fs-wish);
  color: var(--color-text);
  line-height: 2.1;
  letter-spacing: var(--ls-normal);
  margin-top: 0;
}

/* Login: form links */
.bj20-page .bj-login__links {
  margin-top: 32px;
  font-size: var(--fs-note);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-align: center;
}
.bj20-page .bj-login__links a {
  color: var(--color-text-sub);
  text-decoration: none;
}
.bj20-page .bj-login__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bj20-page .bj-login__links span {
  margin: 0 8px;
  color: var(--color-text-muted);
}

/* Login: Responsive */
@media (max-width: 1024px) {
  .bj20-page .bj-login-entry {
    padding: clamp(60px, 10vw, 120px) 40px;
  }
}
@media (max-width: 767px) {
  .bj20-page .bj-login-entry {
    padding: clamp(48px, 8vw, 80px) 24px;
  }
}

.bj20-page .bj-login-form-wrap {
  max-width: 520px;
  margin: 56px auto 0;
  padding: 48px 40px;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  text-align: left;
}
/* WooCommerce notices */
.bj20-page .bj-login-notices ul {
  list-style: none; padding: 0; margin: 0 0 24px;
}
.bj20-page .bj-login-notices li {
  padding: 14px 18px; margin-bottom: 8px;
  font-size: var(--fs-body-sm); line-height: 1.7;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.bj20-page .bj-login-notices .woocommerce-error li {
  border-color: var(--color-error); color: var(--color-error);
}
/* Form fields */
.bj20-page .bj-login__field { margin-bottom: 24px; }
.bj20-page .bj-login__label {
  display: block;
  font-family: var(--sans-jp); font-weight: 400;
  font-size: var(--fs-label); color: var(--color-text-sub);
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.bj20-page .bj-login__input {
  display: block; width: 100%;
  padding: 14px 16px;
  font-family: var(--sans-jp); font-size: 16px; /* 16px: iOS auto-zoom prevention */
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.bj20-page .bj-login__input:focus {
  border-color: var(--color-text-sub);
}
/* Show password checkbox */
.bj20-page .bj-login__show-password {
  margin-top: -12px;
  margin-bottom: 8px;
}
.bj20-page .bj-login__show-password-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-label); color: var(--color-text-sub);
  cursor: pointer; user-select: none;
}
.bj20-page .bj-login__show-password-check {
  width: 15px; height: 15px;
  accent-color: var(--color-surface-dark);
  cursor: pointer; flex-shrink: 0;
}
/* Remember me checkbox */
.bj20-page .bj-login__remember {
  margin-bottom: 28px;
}
.bj20-page .bj-login__remember-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-label); color: var(--color-text-sub);
  cursor: pointer; user-select: none;
}
.bj20-page .bj-login__remember-check {
  width: 15px; height: 15px;
  accent-color: var(--color-surface-dark);
  cursor: pointer; flex-shrink: 0;
}
/* Submit button */
.bj20-page .bj-login__submit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 18px 32px; margin-top: 8px;
  font-family: var(--serif-jp); font-weight: 400;
  font-size: var(--fs-body); letter-spacing: var(--ls-link);
  color: var(--color-bg); background: var(--color-surface-dark);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.4s ease, gap 0.3s ease;
}
.bj20-page .bj-login__submit:hover {
  background: rgba(var(--color-surface-dark-rgb),0.82); gap: 18px;
}
.bj20-page .bj-login__submit svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
  flex-shrink: 0;
}
/* Forgot password link */
.bj20-page .bj-login__forgot {
  font-size: var(--fs-label); color: var(--color-text-sub);
  text-align: center; line-height: 2; margin-top: 24px;
}
.bj20-page .bj-login__forgot a {
  color: var(--color-text-sub);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}
.bj20-page .bj-login__forgot a:hover {
  border-color: var(--color-text);
}
/* Register link */
.bj20-page .bj-login__register-link {
  font-size: var(--fs-label); color: var(--color-text-sub);
  text-align: center; line-height: 2; margin-top: 16px;
}
.bj20-page .bj-login__register-link a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}
.bj20-page .bj-login__register-link a:hover {
  border-color: var(--color-text);
}

/* Login responsive */
@media (max-width: 767px) {
  .bj20-page .bj-login-form-wrap {
    max-width: 100%;
    padding: 32px 24px;
  }
}
