/* Single-column login card used by the account and directory entry screens. */
.bs-entry {
  --entry-blue: #0047b9;
  --entry-ink: #14243a;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 20px;
  background: #fbfcfe;
  box-shadow: 0 16px 48px #142a4614;
}

body[data-view="auth"] .bs-entry .auth-story {
  display: none;
}

.bs-entry > .bs-entry-panel,
.oem-embedded .bs-entry > .bs-entry-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(26px, 4vw, 42px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fbfcfe;
  color: var(--entry-ink);
  overflow-wrap: anywhere;
}

.bs-entry .bs-entry-panel :is(h1, h2) {
  margin: 0 0 10px;
  color: var(--entry-ink);
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: -.025em;
}

.bs-entry .bs-entry-panel :is(input:not([type=checkbox]), button[type=submit]) {
  min-height: 48px;
  font-size: 16px;
  border-radius: 10px;
}

.bs-entry .bs-entry-panel input:not([type=checkbox]) {
  border: 1px solid #c5d2e2;
  background: #fff;
  color: var(--entry-ink);
}

.bs-entry .bs-entry-panel button[type=submit] {
  background: var(--entry-blue);
  border-color: var(--entry-blue);
  color: #fff;
}

.bs-entry .bs-entry-panel :is(input, button, a, summary):focus-visible,
.feedback-login :is(input, button, summary):focus-visible {
  outline: 3px solid #547fd5;
  outline-offset: 3px;
}

body[data-view="auth"]:has(.bs-entry) {
  background: #edf2f8;
}

body[data-view="auth"] .auth-layout.bs-entry {
  display: grid;
  width: min(100%, 520px);
  min-height: 0;
  margin: clamp(8px, 4vw, 48px) auto;
}

.bs-entry .auth-form { max-width: none; width: 100%; }
.bs-entry .auth-submit { width: 100%; }
.bs-entry .member-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bs-entry .member-actions { align-items: stretch; flex-direction: column; }
.bs-entry .member-actions > button { width: 100%; }

.bs-entry-oem { margin-block: 14px 26px; }
.bs-entry-oem .access-card form { display: grid; gap: 12px; }
.bs-entry-oem .access-card :is(form > *, .member-button) { width: 100%; }
.bs-entry-oem .access-card .member-button { min-height: 44px; }
.bs-entry-oem .access-card > a { margin-top: 12px; }
.bs-entry-oem .access-card .status:empty { display: none; }

.control-login.bs-entry { width: min(calc(100% - 32px), 520px); max-width: 520px; margin-inline: auto; padding: 0; }
.control-login .bs-entry-panel a { align-self: flex-start; }

@media (max-width: 740px) {
  .bs-entry { border-radius: 16px; }
  .bs-entry > .bs-entry-panel,
  .oem-embedded .bs-entry > .bs-entry-panel { padding: clamp(22px, 6vw, 34px); }
}

@media (max-width: 767px) {
  html body :is(.auth-layout.bs-entry,.control-login.bs-entry,.bs-entry-oem) {
    border-color: #e6dcd0;
    border-radius: 13px;
    background: #f4f5f6;
  }

  html body :is(.auth-layout.bs-entry,.control-login.bs-entry,.bs-entry-oem) > .bs-entry-panel {
    box-sizing: border-box;
    padding: clamp(18px, 5vw, 30px);
    background: #f4f5f6;
  }

  html body .bs-entry .bs-entry-panel :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]),select) {
    min-block-size: 49px;
    inline-size: 100%;
    max-inline-size: 100%;
    box-sizing: border-box;
    border: 1px solid #e6dcd0 !important;
    border-radius: 9px !important;
    background: #faf9f7 !important;
    color: #17181b !important;
    font-size: 16px !important;
  }

  html body .bs-entry .bs-entry-panel input::placeholder { color: #766e64; opacity: 1; }
  html body .bs-entry :is(button[type="submit"], .member-button, .auth-submit) {
    min-block-size: 49px;
    inline-size: 100%;
    border-radius: 9px !important;
  }
}
