/* Shared guest sign-in design for Activity, login and registration. */
.bo-activity-auth {
  width: 100%;
  padding: clamp(1rem, 3.2vw, 2.75rem) .75rem 3rem;
  display: flex;
  justify-content: center;
}
.bo-activity-auth__panel {
  width: min(100%, 48rem);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d3e2f5;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 14px 40px rgba(12, 38, 93, .11);
}
.bo-activity-auth__header {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.1rem, 3vw, 2.5rem) 1.5rem;
  background: #fff;
  text-align: center;
}
.bo-activity-auth__symbol {
  display: flex;
  width: 100%;
  justify-content: center;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 .55rem;
}
.bo-activity-auth__title {
  margin: 0 0 .35rem;
  color: #173d7d !important;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 750;
  line-height: 1.15;
}
.bo-activity-auth__description {
  margin: 0 auto;
  max-width: 38rem;
  color: #506583 !important;
  font-size: 1rem;
  line-height: 1.55;
}
.bo-activity-auth__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  /* Visible top and bottom rails frame both tabs against the white header. */
  border-top: 1px solid #cfdbed;
  border-bottom: 1px solid #cfdbed;
  background: #eff5fc;
}
.bo-activity-auth__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem .6rem .9rem;
  min-height: 3.3rem;
  color: #234976 !important;
  text-decoration: none !important;
  font-size: 1.02rem;
  font-weight: 740;
  line-height: 1.25;
  box-sizing: border-box;
  border-bottom: 4px solid transparent;
  transition: background .15s ease, color .15s ease;
}
/* A single divider between Log in and Sign up keeps each tab clearly framed. */
.bo-activity-auth__tab + .bo-activity-auth__tab {
  border-left: 1px solid #cfdbed;
}
.bo-activity-auth__tab:hover { background: #e1edff; }
.bo-activity-auth__tab.is-active {
  background: #fff;
  color: #124fa9 !important;
  border-bottom-color: #2165d1;
}
.bo-activity-auth__tab:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: -4px;
}
.bo-activity-auth__body {
  padding: clamp(1.25rem, 3.2vw, 2.5rem);
  min-height: 13rem;
  text-align: left;
  transition: opacity .12s ease;
}
.bo-activity-auth.is-switching .bo-activity-auth__body {
  opacity: .58;
  pointer-events: none;
}
.bo-activity-auth__form-title {
  color: #133c7b;
  margin: 0 0 1.2rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.bo-activity-auth__form-inner { max-width: 38rem; margin: 0 auto; }
.bo-activity-auth__body form { max-width: 100%; }
.bo-activity-auth__body form .form-item { max-width: 100%; }
.bo-activity-auth__body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.bo-activity-auth__body select,
.bo-activity-auth__body textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.bo-activity-auth__body .form-actions { margin-top: 1.1rem; }
.bo-activity-auth__body .form-actions input[type="submit"],
.bo-activity-auth__body .form-actions button[type="submit"] {
  min-height: 2.7rem;
  border-radius: .6rem;
}
@media (max-width: 480px) {
  .bo-activity-auth { padding: .65rem .5rem 2rem; }
  .bo-activity-auth__panel { border-radius: .8rem; }
  .bo-activity-auth__header { padding: 1.35rem 1.15rem; }
  .bo-activity-auth__body { padding: 1.2rem 1.05rem 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bo-activity-auth__tab,
  .bo-activity-auth__body { transition: none; }
}

.bo-activity-auth__switch-error { color: #8a1b1b; font-size: .9rem; margin: 0 0 1rem; }


/* Keep the View Password eye inside the password field instead of below it.
 * The module inserts button.shwpd immediately after the input. A tiny JS
 * wrapper gives the button a positioning context separate from labels/help.
 */
.bo-activity-auth .bo-auth-password-control {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.bo-activity-auth .bo-auth-password-control > input {
  display: block;
  width: 100%;
  min-width: 0;
  padding-right: 3.15rem !important;
  box-sizing: border-box;
}
.bo-activity-auth .bo-auth-password-control > button.shwpd {
  position: absolute !important;
  inset: auto .5rem auto auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: block;
  box-sizing: border-box;
  width: 2.4rem;
  height: 2.4rem;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
  z-index: 2;
}
.bo-activity-auth .bo-auth-password-control > button.shwpd:focus-visible {
  outline: 2px solid #2364cf;
  outline-offset: 1px;
  border-radius: .35rem;
}
