/**
 * Login / registration presentation only.
 * Does not replace BuddyBoss or WordPress authentication.
 *
 * Visual language from staging.barker.cabinetdesigner.ai:
 * navy #101c30, gold #c5a04f, cream #faf4e5, Inter.
 */

body.login,
body.login-split-page,
body.buddypress.register,
body.buddypress.activation {
  font-family: Inter, "Segoe UI", sans-serif;
  background: #101c30;
  color: #102a40;
}

body.login #login {
  width: min(420px, calc(100% - 2rem));
  padding: 0;
}

body.login #login h1 a,
body.login .wp-login-logo a {
  background-image: url("../brand/cabinetforums-lockup.svg?ver=2.2.9") !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  width: 240px !important;
  height: 44px !important;
  overflow: hidden;
  text-indent: -9999px;
  margin-bottom: 1.4rem;
}

body.login.login-split-page #login h1 a,
body.login.login-split-page .wp-login-logo a {
  background-image: url("../brand/cabinetforums-lockup-on-light.svg?ver=2.2.9") !important;
}

body.login form,
body.login #loginform,
body.login #lostpasswordform,
body.login #resetpassform,
body.login #registerform {
  background: #faf4e5;
  border: 1px solid #ddb461;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 5px 14px rgba(11, 41, 66, 0.18);
  padding: 1.4rem 1.35rem 1.5rem;
}

body.login label,
body.login .user-pass-wrap label {
  color: #102a40;
  font-size: 0.92rem;
  font-weight: 600;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"],
body.login input[type="number"],
body.buddypress.register input[type="text"],
body.buddypress.register input[type="email"],
body.buddypress.register input[type="password"],
body.buddypress.activation input[type="text"] {
  background: #fffdf7 !important;
  border: 1px solid #d8d9d1 !important;
  border-radius: 9px !important;
  color: #102a40 !important;
  min-height: 48px !important;
  padding: 0.7rem 0.9rem !important;
  font-size: 1rem !important;
  box-shadow: none !important;
}

body.login input:focus,
body.buddypress.register input:focus {
  border-color: #c5a04f !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 79, 0.28) !important;
}

body.login .wp-core-ui .button-primary,
body.login #wp-submit,
body.buddypress.register input[type="submit"],
body.buddypress.activation input[type="submit"],
body.login .jetpack-sso.button,
body.login .jetpack-sso.jetpack-sso.button {
  background: #c5a04f !important;
  border: 1px solid #c5a04f !important;
  color: #142337 !important;
  border-radius: 9px !important;
  min-height: 44px !important;
  font-family: Inter, "Segoe UI", sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body.login .jetpack-sso.button {
  background: #0b2942 !important;
  border-color: #0b2942 !important;
  color: #ffffff !important;
}

body.login .forgetmenot label,
body.login #nav a,
body.login #backtoblog a {
  color: #faf4e5;
}

body.login .privacy-policy-page-link {
  color: #576978;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.75rem;
}

body.login .privacy-policy-page-link a,
body.login-split-page .privacy-policy-page-link a {
  color: #0b2942 !important;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: #c5a04f;
}

body.login #login_error,
body.login .message,
body.login .success {
  border-radius: 9px;
  border-left-color: #c5a04f;
}

/* BuddyBoss split login / register */
body.login-split-page .login-split,
body.buddypress.register .login-split,
body.buddypress.activation .login-split {
  background: #101c30 !important;
  background-image: none !important;
  color: #faf4e5;
}

body.login-split-page .login-split .split-overlay,
body.buddypress.register .login-split .split-overlay {
  background: transparent;
  opacity: 0;
}

html body.login.login-split-page .login-split__entry h1,
html body.buddypress.register .login-split__entry h1 {
  color: #ffffff !important;
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html body.login.login-split-page .login-split__entry p,
html body.buddypress.register .login-split__entry p {
  color: rgba(250, 244, 229, 0.88) !important;
}

body.login-split-page .login-heading,
body.buddypress.register #primary,
body.buddypress.register .register-section,
body.login-split-page #login,
body.buddypress.register .bs-bp-container-reg {
  background: #eef3f6;
  color: #102a40;
}

body.buddypress.register .register-section,
body.login-split-page #login,
body.buddypress.activation .activate-section {
  background: #faf4e5;
  border: 1px solid #ddb461;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 5px 14px rgba(11, 41, 66, 0.1);
}

body.buddypress.register .register-section-logo img.bb-logo,
body.buddypress.activation .activate-section-logo img,
body.login-split-page .register-section-logo img {
  content: url("../brand/cabinetforums-lockup-on-light.svg?ver=2.2.9");
  width: 240px !important;
  max-width: 100% !important;
  height: 44px !important;
  object-fit: contain;
}

body.login-split-page .login-heading h2,
body.buddypress.register h1,
body.buddypress.register .entry-title {
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 800;
  color: #142337;
}

body.login-split-page a,
body.buddypress.register a {
  color: #0b2942;
}

body.login-split-page a:hover,
body.buddypress.register a:hover {
  color: #17699a;
}

body.login #jetpack-sso-wrap__action > p {
  display: none;
}

body.login .altEmail_container,
body.login .wpa_hidden_field {
  position: absolute !important;
  left: -9999px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.login-split-page .login-split__entry p:empty {
  display: none;
}

body.buddypress.register h2.wp-block-heading:empty,
body.buddypress.register h4.bb-card-heading:empty,
body.buddypress.register .registration-popup h2:empty,
body.login h1:empty,
body.login-split-page .entry-title:empty,
.registration-popup h2.wp-block-heading:empty {
  display: none !important;
}

/* Keep agreement link text in the accessibility tree and visible. */
body.buddypress.register .option-label a.popup-terms,
body.buddypress.register .option-label a.popup-privacy,
body.login .option-label a,
body.buddypress.register label[for="legal_agreement"] a {
  font-size: inherit !important;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.buddypress.register .option-label a.popup-terms:focus,
body.buddypress.register .option-label a.popup-privacy:focus,
body.login .option-label a:focus {
  outline: 2px solid #c5a04f;
  outline-offset: 2px;
}

@media (max-width: 800px) {
  body.login-split-page .login-split,
  body.buddypress.register .login-split {
    min-height: 180px;
  }

  body.login-split-page .login-heading {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }
}
