/**
 * Auth pages (login, register) — layout and logo fixes
 */
body.layout-wide {
  min-height: 100vh;
  background-color: #f8f7fa;
}

body.layout-wide .container-xxl.authentication-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.layout-wide .authentication-wrapper.authentication-basic {
  display: flex;
  flex-basis: 100%;
  min-height: calc(100vh - 2rem);
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

body.layout-wide .authentication-wrapper .authentication-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

body.layout-wide .authentication-wrapper .card {
  position: relative;
  z-index: 2;
}

.mpl-plan-select-card {
  display: block;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.mpl-plan-select-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpl-plan-select-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem;
  border: 2px solid #e6e6e8;
  border-radius: 0.5rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mpl-plan-select-card--selected .mpl-plan-select-body,
.mpl-plan-select-input:checked + .mpl-plan-select-body,
.mpl-plan-select-input:focus-visible + .mpl-plan-select-body {
  border-color: var(--mpl-primary, #0064cd);
  box-shadow: 0 0 0 0.15rem rgba(0, 100, 205, 0.15);
}

.mpl-plan-select-card--featured .mpl-plan-select-body {
  border-color: rgba(0, 100, 205, 0.35);
}

.mpl-plan-select-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mpl-primary, #0064cd);
}

.mpl-plan-select-name {
  font-weight: 600;
  color: #2f2b3d;
}

.mpl-plan-select-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mpl-primary, #0064cd);
}

.mpl-plan-select-price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: #8e8a9d;
}

.mpl-plan-select-desc,
.mpl-plan-select-meta {
  line-height: 1.4;
}

body.layout-wide .authentication-wrapper .app-brand-logo img,
body.layout-wide .authentication-wrapper .mpl-brand-logo,
body.layout-wide .authentication-wrapper .mpl-brand-logo--auth-basic {
  max-height: 88px !important;
  width: auto !important;
  max-width: min(280px, 100%) !important;
  height: auto !important;
  object-fit: contain;
}

body.layout-wide .authentication-wrapper .app-brand-link {
  display: flex;
  justify-content: center;
}

/* Prevent full-page logo blow-up if theme CSS fails partially */
.authentication-page img.mpl-brand-logo,
.authentication-page .app-brand-logo img {
  max-height: 88px !important;
  width: auto !important;
  max-width: min(280px, 100%) !important;
  height: auto !important;
}

.authentication-page .authentication-inner .card {
  width: 100%;
}

.mpl-auth-validation-summary {
  font-size: 0.9375rem;
}

.mpl-auth-validation-summary ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}
