/* A1 Portal: the sign-in surfaces (staff, client and firm sign-in, register, forgot and reset password),
   the knowledge base search, the affiliate pages and the email verification notice. Colours come from
   a1-design-tokens.css. login.js builds the shell (.a1-page-shell,
   .a1-login-head, .a1-form-shell, .a1-login-actions, .a1-login-links) around the native form. */
:root {
  --login-card: 520px; /* a form with one column of fields */
  --login-card-wide: 960px; /* a form with two columns (register) */
  --login-control: 48px; /* fields, selects and buttons share one height */
  --login-radius: 12px 5px; /* the house corner: one wide, one tight */
  --login-field-edge: rgba(185, 137, 25, 0.42);
  --login-field-edge-strong: rgba(185, 137, 25, 0.62);
  --login-ring: rgba(222, 186, 92, 0.32);
  --login-gold-shadow: rgba(120, 84, 8, 0.45);
  --login-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --login-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 20 20 4'/%3E%3C/svg%3E");
  --login-use: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 16l4-4-4-4'/%3E%3Cpath d='M14 12H4'/%3E%3C/svg%3E");
  --shell-max-width: 1100px; /* the guest header and the widest shell share one width */
}

body {
  font-family: var(--a1-ui-font);
  font-size: 16px;
  color: var(--a1-ink);
  background: var(--a1-page, #f0ebfc);
  position: relative;
  min-height: 100vh;
}

.authentication-wrapper,
.customers-login-wrapper,
.auth-wrapper,
body .login-wrapper,
body .authentication {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
  position: relative;
  overflow: hidden;
}

.authentication-wrapper > *,
.customers-login-wrapper > *,
.auth-wrapper > * {
  position: relative;
  z-index: 1;
}

/* The shell: the guest header, the firm's name or logo, then the card. */
.a1-page-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: var(--shell-max-width);
  margin: 0 auto;
  padding: 0 16px; /* the gutter on a phone, where the native wrappers have none */
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.a1-page-shell #content,
.a1-page-shell #content > .container {
  width: 100%;
  max-width: var(--shell-max-width);
  margin: 0 auto;
}

/* The firm above its card, where the guest header does not already name it. */
.a1-login-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--login-card);
  margin: 0 auto;
  text-align: center;
}

.a1-login-head img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(260px, 70vw);
  max-height: 72px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.a1-login-head .a1-login-firm {
  font-family: var(--a1-title-font);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--a1-purple-ink);
  text-decoration: none;
}

.a1-login-head .a1-login-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--a1-ink);
}

/* Native logo blocks that stay in the page keep no box of their own. */
.login-logo,
.login-logo a,
.login-logo img,
.logo,
.logo a,
.logo img,
.brand,
.brand a,
.brand img {
  background: transparent !important;
  box-shadow: none !important;
}

/* Hide native headers and navbars on guest and sign-in screens, so there is one header. */
html.a1-portal-guest nav.header,
html.a1-portal-guest nav.navbar,
html.a1-portal-guest nav.navbar-default,
html.a1-portal-guest nav.navbar-fixed-top,
body.a1-login-theme nav.header,
body.a1-login-theme nav.navbar,
body.a1-login-theme nav.navbar-default,
body.a1-login-theme nav.navbar-fixed-top,
body[class*='login'] nav.header,
body[class*='login'] nav.navbar,
body[class*='login'] nav.navbar-default,
body[class*='register'] nav.header,
body[class*='register'] nav.navbar,
body[class*='register'] nav.navbar-default,
body.customers_login nav.header,
body.customers_login nav.navbar,
body.customers_login nav.navbar-default,
body.client nav.header,
body.client nav.navbar,
body.client nav.navbar-default,
body.customer nav.header,
body.customer nav.navbar,
body.customer nav.navbar-default,
body.tenant nav.header,
body.tenant nav.navbar,
body.tenant nav.navbar-default,
.a1-native-nav-hidden {
  display: none !important;
}

/* The verification page keeps the portal navigation. */
body.verification nav.header,
body.verification nav.navbar,
body.verification nav.navbar-default,
body[class*='verification'] nav.header,
body[class*='verification'] nav.navbar,
body[class*='verification'] nav.navbar-default {
  display: block !important;
}

/* The native wrapper of the staff sign-in takes the card's width, so every sign-in card is the same width. */
body.a1-login-theme .authentication-form-wrapper {
  max-width: calc(var(--login-card) + 32px);
  padding-top: 0;
}

/* The card. One surface: the native panels inside it lose their own edges. */
.a1-form-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--login-card);
  margin: 0 auto;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--login-field-edge-strong);
  border-radius: 18px 8px;
  box-shadow: 0 0 0 4px rgba(212, 175, 87, 0.1), var(--a1-shadow), inset 0 1px 0 #fff;
  box-sizing: border-box;
}

.a1-form-shell > * {
  width: 100%;
}

.a1-form-shell:has(.col-md-6, .col-sm-6) {
  max-width: var(--login-card-wide);
}

.a1-form-shell form {
  margin: 0;
}

.a1-form-shell :is(.panel_s, .panel, .panel-body, .panel-footer, .card, .tw-bg-white, .tw-shadow-sm) {
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.a1-form-shell h3,
.a1-form-shell h4 {
  margin: 0 0 14px;
  color: var(--a1-purple-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.a1-form-shell .form-group,
.a1-form-shell .mbot15 {
  width: 100%;
  margin: 0 0 18px !important;
}

.a1-form-shell label {
  display: block;
  margin: 0 0 8px !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--a1-purple-ink);
}

/* The required mark inside a label stays beside its text. */
.a1-form-shell label .text-danger {
  display: inline;
  margin: 0 2px 0 0;
  color: var(--a1-negative);
}

/* Fields: one height, the house corner, empty and filled and focused as three looks. */
/* :where() keeps the base rule's specificity low, so the :focus rule below wins over it. */
.a1-form-shell :where(.form-control, input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"]), textarea, select) {
  width: 100%;
  height: var(--login-control);
  min-height: var(--login-control);
  padding: 0 14px;
  font-size: 16px;
  color: var(--a1-ink);
  background: #fff;
  border: 1px solid var(--login-field-edge);
  border-radius: var(--login-radius);
  box-shadow: inset 0 1px 2px rgba(46, 27, 68, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease; /* the focus ring shows at once; the edge and the tint ease */
}

.a1-form-shell textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
}

.a1-form-shell [data-a1-filled],
.a1-form-shell .form-control:not(:placeholder-shown) {
  background: color-mix(in srgb, var(--a1-lavender) 40%, #fff);
}

.a1-form-shell :is(.form-control, input, textarea):focus {
  border-color: var(--a1-gold-deep) !important; /* the client theme forces its own grey focus border */
  box-shadow: 0 0 0 3px var(--login-ring), inset 0 1px 2px rgba(46, 27, 68, 0.06);
  outline: none;
}

.a1-form-shell .form-group > .text-danger,
.a1-form-shell .form-group > .help-block {
  display: block;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--a1-negative);
}

/* The native select list (bootstrap-select) is one field, not a field inside a field: the wrapper keeps no
   edge, the toggle is the field, and the list below it has the shared panel face. */
.a1-form-shell .bootstrap-select,
.a1-form-shell .bootstrap-select.form-control {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.a1-form-shell .bootstrap-select > select,
.a1-form-shell .bootstrap-select > select.bs-select-hidden {
  display: none !important;
  width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.a1-form-shell .bootstrap-select > .btn.dropdown-toggle,
.a1-form-shell .bootstrap-select > .btn.dropdown-toggle:focus {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: var(--login-control);
  padding: 0 44px 0 14px !important;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--a1-ink);
  text-transform: none;
  background: #fff;
  border: 1px solid var(--login-field-edge);
  border-radius: var(--login-radius);
  box-shadow: inset 0 1px 2px rgba(46, 27, 68, 0.06);
  outline: none;
  transform: none;
}

.a1-form-shell .bootstrap-select > .btn.dropdown-toggle:hover {
  transform: none;
  box-shadow: inset 0 1px 2px rgba(46, 27, 68, 0.06);
  border-color: var(--login-field-edge-strong);
}

.a1-form-shell .bootstrap-select > .btn.dropdown-toggle:focus-visible,
.a1-form-shell .bootstrap-select.open > .btn.dropdown-toggle {
  border-color: var(--a1-gold-deep);
  box-shadow: 0 0 0 3px var(--login-ring), inset 0 1px 2px rgba(46, 27, 68, 0.06);
}

.a1-form-shell .bootstrap-select > .btn .filter-option {
  position: static;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a1-form-shell .bootstrap-select > .btn .bs-caret {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 100%;
}

.a1-form-shell .bootstrap-select > .btn .caret {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -8px 0 0;
  border: 0;
  border-right: 2px solid var(--a1-purple-soft);
  border-bottom: 2px solid var(--a1-purple-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.a1-form-shell .bootstrap-select.open > .btn .caret {
  margin-top: -3px;
  transform: rotate(225deg);
}

.a1-form-shell .bootstrap-select .dropdown-menu {
  padding: 6px;
  border: 1px solid var(--a1-section-edge);
  border-radius: 12px 5px;
  background: var(--a1-panel-face);
  box-shadow: var(--a1-shadow);
}

.a1-form-shell .bootstrap-select .bs-searchbox {
  padding: 4px 4px 8px;
}

.a1-form-shell .bootstrap-select .bs-searchbox .form-control {
  height: 40px;
  min-height: 40px;
}

.a1-form-shell .bootstrap-select .dropdown-menu.inner > li > a {
  padding: 8px 12px;
  border-radius: 8px 3px;
  color: var(--a1-ink);
  outline: none;
}

.a1-form-shell .bootstrap-select .dropdown-menu.inner > li.selected > a,
.a1-form-shell .bootstrap-select .dropdown-menu.inner > li > a:hover,
.a1-form-shell .bootstrap-select .dropdown-menu.inner > li > a:focus {
  background: #fff;
  color: var(--a1-purple-ink);
  box-shadow: var(--a1-shadow-soft);
}

/* The eye that shows and hides a password: an icon inside the field, no pill. */
.a1-password-preview-wrap {
  position: relative;
  width: 100%;
}

.a1-password-preview-wrap .a1-password-preview-input {
  padding-right: 56px !important;
}

.a1-password-preview-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px 3px;
  background: transparent;
  color: var(--a1-purple-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.a1-password-preview-toggle::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--login-eye) center / contain no-repeat;
  mask: var(--login-eye) center / contain no-repeat;
}

.a1-password-preview-toggle[aria-pressed="true"]::before {
  -webkit-mask-image: var(--login-eye-off);
  mask-image: var(--login-eye-off);
}

.a1-password-preview-toggle:hover,
.a1-password-preview-toggle:focus-visible {
  background: color-mix(in srgb, var(--a1-lavender) 60%, #fff);
  color: var(--a1-purple-ink);
  outline: none;
}

.a1-password-preview-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--a1-button-ring);
}

/* A checkbox with its label ('Remember me', a terms box): one line, no state word. */
.a1-form-shell .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 20px !important;
  padding: 0 !important;
  font-weight: 600;
  color: var(--a1-muted);
}

.a1-form-shell .checkbox input[type="checkbox"] {
  position: static;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0 !important; /* Bootstrap's .checkbox-inline pulls the box left by 20px */
  flex: 0 0 auto;
  accent-color: var(--a1-gold-deep);
  cursor: pointer;
}

.a1-form-shell .checkbox label {
  display: inline;
  margin: 0 !important;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--a1-ink);
  cursor: pointer;
}

.a1-form-shell .checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--a1-gold-deep);
  outline-offset: 2px;
}

/* Buttons: the buttons of a form share one size (10rem wide, the height of a field, marked data-equal-width by login.js so
   the shared fit-content rule lets them share it) and sit centred in one row. */
.a1-login-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

.a1-form-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--login-control);
  min-height: var(--login-control);
  padding: 0 18px !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--login-radius);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.a1-login-actions > .btn,
.a1-form-shell .btn-block {
  width: clamp(8rem, 44%, 10rem); /* two fit in one row on a 360 px phone */
  margin: 0 !important;
}

.a1-form-shell .btn-primary,
.a1-form-shell .btn-info,
.a1-form-shell button[type="submit"] {
  background: var(--a1-button-gold-face);
  border-color: var(--a1-button-gold-edge);
  color: var(--a1-gold-ink);
  box-shadow: var(--a1-button-gold-bevel), 0 8px 16px -10px var(--login-gold-shadow);
}

.a1-form-shell .btn-primary:hover,
.a1-form-shell .btn-info:hover,
.a1-form-shell button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--a1-button-gold-bevel), 0 0 0 3px var(--a1-button-gold-ring), 0 10px 18px -10px var(--login-gold-shadow);
  color: var(--a1-gold-ink);
}

.a1-form-shell .btn-default,
.a1-form-shell .btn-outline,
.a1-form-shell .btn-ghost {
  background: var(--a1-button-face);
  border-color: var(--a1-button-edge);
  color: var(--a1-purple-ink);
  box-shadow: var(--a1-button-bevel);
}

.a1-form-shell .btn-default:hover,
.a1-form-shell .btn-outline:hover,
.a1-form-shell .btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--a1-button-bevel), 0 0 0 3px var(--a1-button-ring);
  color: var(--a1-purple-ink);
}

.a1-form-shell .btn:focus-visible {
  outline: 2px solid var(--a1-gold-deep);
  outline-offset: 2px;
}

/* Links under the buttons: forgot password, register. */
.a1-login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 18px 0 0;
}

.a1-form-shell a:not(.btn),
.a1-form-shell .forgotten-password {
  font-size: 15px;
  font-weight: 600;
  color: var(--a1-purple-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.a1-form-shell a:not(.btn):hover {
  text-decoration: none;
  border-bottom-color: var(--a1-gold);
}

.a1-form-shell a:not(.btn):focus-visible {
  outline: 2px solid var(--a1-gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Messages (.alert) take the shared centred look from a1-signin.css. */
.a1-form-shell .alert { margin-bottom: 18px; }

/* The client theme's footer line ('2026 Copyright Firm - Privacy policy') wraps as items, so the name and the link never
   sit on each other on a phone. */
body.a1-login-theme footer .col-md-12.text-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 6px;
}

/* The product behind the sign-in, under the firm's card (the brand map, A1 Portal > Brands). It is the last thing in the card. */
.a1-login-brand { order: 99; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 12.5px; font-weight: 600; color: var(--a1-muted); text-decoration: none; transition: color 0.25s ease; }
.a1-login-brand:hover { color: var(--a1-purple-ink); text-decoration: none; }
.a1-login-brand__logo { display: block; height: 18px; width: auto; }

@media (max-width: 640px) {
  .a1-form-shell {
    padding: 22px 18px 20px;
  }

  .a1-affiliate-page .a1-affiliate-shell .jumbotron {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a1-page-shell,
  .a1-form-shell .btn,
  .a1-form-shell .form-control,
  .a1-password-preview-toggle,
  .a1-form-shell .bootstrap-select > .btn .caret,
  .a1-login-brand {
    transition: none;
  }

  .a1-form-shell .btn:hover {
    transform: none;
  }
}

/* Affiliate layout wrappers and spacing */
.a1-affiliate-page .a1-affiliate-shell {
  max-width: var(--shell-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  float: none;
}

.a1-affiliate-page #content {
  width: 100%;
  max-width: var(--shell-max-width);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.a1-affiliate-page .a1-affiliate-shell .container {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.a1-affiliate-page .a1-affiliate-shell .row {
  margin-left: 0;
  margin-right: 0;
}

.a1-affiliate-page .a1-affiliate-shell .row > [class*='col-'] {
  padding-left: 0;
  padding-right: 0;
}

.a1-affiliate-page .a1-page-shell,
.a1-affiliate-page .a1-form-shell,
.a1-affiliate-page #content {
  margin-left: auto;
  margin-right: auto;
}

.a1-affiliate-page .a1-form-shell {
  max-width: var(--shell-max-width);
}

.a1-affiliate-page .a1-affiliate-shell .jumbotron {
  width: 100%;
  max-width: var(--shell-max-width);
  margin: 0 auto;
  padding: 26px 26px 24px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--login-field-edge);
  border-radius: 18px 8px;
  box-shadow: inset 0 1px 0 #fff, var(--a1-shadow-soft);
}

.a1-affiliate-page .a1-affiliate-shell .jumbotron > * {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Knowledge base search: the field and its button are one bar. */
#kb-search-form .kb-search-jumbotron,
#kb-search-form .kb-search,
.kb-search-jumbotron,
.kb-search {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#kb-search-form,
form[action*="knowledge-base/search"] {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 0;
}

#kb-search-form .form-control,
form[action*="knowledge-base/search"] .form-control {
  padding: 14px 16px;
  font-size: 18px;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  order: 1;
  height: 58px;
  line-height: 1.4;
  border: 1px solid var(--a1-button-gold-edge);
  border-right: 0;
  border-radius: 12px 0 0 12px;
}

#kb-search-form .kb-search-input,
form[action*="knowledge-base/search"] .kb-search-input {
  order: 1;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

#kb-search-form .input-group-btn,
form[action*="knowledge-base/search"] .input-group-btn {
  display: none !important;
}

#kb-search-form .kb-search-button,
form[action*="knowledge-base/search"] .kb-search-button {
  order: 2;
  flex: 0 0 auto;
  margin-left: 0;
  min-width: 110px;
  height: 58px;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 12px 12px 0;
  border: 1px solid var(--a1-button-gold-edge);
  border-left: 0;
  white-space: nowrap;
  background: var(--a1-button-gold-face);
  color: var(--a1-gold-ink);
  box-shadow: var(--a1-button-gold-bevel);
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}

#kb-search-form .kb-search-button:hover,
#kb-search-form .kb-search-button:active,
form[action*="knowledge-base/search"] .kb-search-button:hover,
form[action*="knowledge-base/search"] .kb-search-button:active {
  transform: translateY(-1px);
  box-shadow: var(--a1-button-gold-bevel), 0 0 0 3px var(--a1-button-gold-ring);
}

#kb-search-form .input-group,
form[action*="knowledge-base/search"] .input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
  flex-direction: row;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
}

#kb-search-form .input-group .input-group-addon,
#kb-search-form .kb-search-icon,
#kb-search-form .form-control-feedback,
form[action*="knowledge-base/search"] .input-group .input-group-addon,
form[action*="knowledge-base/search"] .kb-search-icon,
form[action*="knowledge-base/search"] .form-control-feedback {
  display: none !important;
}

/* Verification page styling */
.section-heading-verification-required {
  font-weight: 800;
  color: var(--a1-ink);
  letter-spacing: -0.01em;
}

.verification-required-alert.alert {
  border-radius: 16px 6px;
  border: 1px solid var(--login-field-edge);
  background: #fff;
  color: var(--a1-muted);
  box-shadow: var(--a1-shadow-soft);
  padding: 18px 20px;
  text-align: center;
}

.verification-required-heading {
  font-weight: 800;
  color: var(--a1-ink);
  margin-bottom: 8px;
}

.verification-required-message {
  color: var(--a1-muted);
  font-weight: 600;
  line-height: 1.6;
}

.verification-required-message a {
  color: var(--a1-purple-ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--login-field-edge);
  padding-bottom: 1px;
}

.verification-required-message a:hover {
  text-decoration: none;
  border-bottom-color: var(--a1-gold-deep);
}

.verification-required-message .a1-verify-resend,
.verification-required-message .a1-verify-profile {
  color: var(--a1-purple-ink);
  font-weight: 800;
  text-decoration: underline;
}

.verification-required-message a:hover .a1-verify-resend,
.verification-required-message .a1-verify-profile:hover {
  color: var(--a1-purple-soft);
}

.verification-required-alert input,
.verification-required-alert .form-control {
  display: none !important;
}

.panel_s .panel-body .verification-required-alert {
  margin-bottom: 0;
}

/* The guest theme for every public page that prints the shared head (sign-in, knowledge base, marketing).
   The sign-in card's own rules above govern inside .a1-form-shell. */
html.a1-portal-guest,
html.a1-portal-guest body,
body.a1-login-theme,
body.customers_login,
body.login_admin,
body.customers,
body.register {
  background: var(--a1-page, #f0ebfc) !important;
  color: var(--a1-ink) !important;
}

html.a1-portal-guest :is(#wrapper, #content, .jumbotron, .kb-search-jumbotron, .kb-search),
body.a1-login-theme :is(#wrapper, #content, .jumbotron, .kb-search-jumbotron, .kb-search) {
  background: transparent !important;
}

html.a1-portal-guest :is(.panel_s, .panel, .card):not(.a1-form-shell *),
body.a1-login-theme :is(.panel_s, .panel, .card):not(.a1-form-shell *) {
  border-color: var(--login-field-edge) !important;
  background: #fff !important;
  box-shadow: var(--a1-shadow-soft), inset 0 1px 0 #fff !important;
}

html.a1-portal-guest :is(.form-control:not(.bootstrap-select), input:not([type="checkbox"]):not([type="radio"]), textarea):not(.a1-form-shell *),
html.a1-portal-guest select:not(.bs-select-hidden):not(.a1-form-shell *),
body.a1-login-theme :is(.form-control:not(.bootstrap-select), input:not([type="checkbox"]):not([type="radio"]), textarea):not(.a1-form-shell *),
body.a1-login-theme select:not(.bs-select-hidden):not(.a1-form-shell *) {
  border-color: var(--login-field-edge) !important;
  background: #fff !important;
  color: var(--a1-ink) !important;
  box-shadow: none !important;
  font-size: 16px !important;
  min-height: var(--login-control) !important;
}

html.a1-portal-guest :is(.form-control:focus, input:focus, select:focus, textarea:focus):not(.a1-form-shell *),
body.a1-login-theme :is(.form-control:focus, input:focus, select:focus, textarea:focus):not(.a1-form-shell *) {
  border-color: var(--a1-gold-deep) !important;
  box-shadow: 0 0 0 3px var(--login-ring) !important;
  outline: none !important;
}

html.a1-portal-guest .bootstrap-select > select.bs-select-hidden,
body.a1-login-theme .bootstrap-select > select.bs-select-hidden,
html.a1-portal-guest .bootstrap-select > select.selectpicker,
body.a1-login-theme .bootstrap-select > select.selectpicker {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.a1-portal-guest :is(.btn-primary, .btn-info, button[type="submit"]):not(.a1-form-shell *),
body.a1-login-theme :is(.btn-primary, .btn-info, button[type="submit"]):not(.a1-form-shell *) {
  border-color: var(--a1-button-gold-edge) !important;
  background: var(--a1-button-gold-face) !important;
  color: var(--a1-gold-ink) !important;
  box-shadow: var(--a1-button-gold-bevel), 0 8px 16px -10px var(--login-gold-shadow) !important;
  font-size: 16px !important;
  min-height: var(--login-control) !important;
}

html.a1-portal-guest :is(.btn-primary:hover, .btn-primary:focus, .btn-info:hover, .btn-info:focus, button[type="submit"]:hover, button[type="submit"]:focus):not(.a1-form-shell *),
body.a1-login-theme :is(.btn-primary:hover, .btn-primary:focus, .btn-info:hover, .btn-info:focus, button[type="submit"]:hover, button[type="submit"]:focus):not(.a1-form-shell *) {
  box-shadow: var(--a1-button-gold-bevel), 0 0 0 3px var(--a1-button-gold-ring) !important;
  color: var(--a1-gold-ink) !important;
}

html.a1-portal-guest :is(.btn-default, .btn-outline, .btn-ghost):not(.a1-form-shell *),
body.a1-login-theme :is(.btn-default, .btn-outline, .btn-ghost):not(.a1-form-shell *) {
  border-color: var(--a1-button-edge) !important;
  background: var(--a1-button-face) !important;
  color: var(--a1-purple-ink) !important;
  box-shadow: var(--a1-button-bevel) !important;
  font-size: 16px !important;
}

html.a1-portal-guest :is(a, .text-muted):not(.a1-form-shell *),
body.a1-login-theme :is(a, .text-muted):not(.a1-form-shell *) {
  color: var(--a1-purple-ink) !important;
}

/* Links and plain buttons show a gold ring when reached with the keyboard. */
html.a1-portal-guest :is(a, .btn-default, input[type="checkbox"]):focus-visible,
body.a1-login-theme :is(a, .btn-default, input[type="checkbox"]):focus-visible {
  outline: 2px solid var(--a1-gold-deep) !important;
  outline-offset: 3px;
  border-radius: 4px;
}

html.a1-portal-guest #kb-search-form .form-control,
html.a1-portal-guest form[action*="knowledge-base/search"] .form-control {
  background: #fff !important;
  color: var(--a1-ink) !important;
  border-color: var(--a1-button-gold-edge) !important;
  box-shadow: var(--a1-shadow-soft) !important;
  font-size: 18px !important;
}

html.a1-portal-guest #kb-search-form .form-control::placeholder,
html.a1-portal-guest form[action*="knowledge-base/search"] .form-control::placeholder {
  color: var(--a1-muted) !important;
}

/* The link to the other sign-in page; the area last used in this browser is marked with the gold accent. */
.a1-form-shell a.a1-area-link.is-last {
  color: var(--a1-gold-ink, var(--a1-purple-ink));
  border-bottom-color: currentColor;
}

/* The demo site's account list: one row per account, the row fills in the sign-in, and the last column holds the house icon. */
.a1-demo-accounts {
  margin: 0;
}

.a1-demo-accounts tr.credential-row > td {
  vertical-align: top;
  transition: background-color 0.18s ease;
}

.a1-demo-accounts tr.credential-row:is(:hover, :focus-within) > td {
  background: var(--a1-lavender, #f4eaff);
}

.a1-demo-accounts tr.credential-row > td:last-child {
  width: 44px;
  text-align: center;
}

.a1-form-shell a.a1-demo-accounts__use {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--a1-purple-ink, #551a7d);
  -webkit-mask: var(--login-use) center / contain no-repeat;
  mask: var(--login-use) center / contain no-repeat;
  transition: transform 0.18s ease;
}

.a1-demo-accounts tr.credential-row:hover .a1-demo-accounts__use {
  transform: translateX(2px);
}

/* The notice above the list stands apart from the links row. */
.a1-form-shell form > p.text-center:has(+ .table-responsive .a1-demo-accounts) {
  margin: 22px 0 10px;
  color: var(--a1-muted, #5d5475);
  font-size: 14px;
}

/* On a phone each account is one block: the name, the email and the password stacked, with the icon in its own column. */
@media (max-width: 560px) {
  .a1-form-shell .table-responsive:has(.a1-demo-accounts) {
    border: 0;
    overflow: visible;
  }

  .a1-demo-accounts,
  .a1-demo-accounts tbody {
    display: block;
  }

  .a1-demo-accounts tr.credential-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    border-top: 1px solid var(--a1-border, #e9e2f2);
  }

  .a1-demo-accounts tr.credential-row > td {
    display: block;
    grid-column: 1;
    padding: 2px 10px;
    border: 0;
    overflow-wrap: anywhere;
  }

  .a1-demo-accounts tr.credential-row > td:first-child {
    padding-top: 10px;
    font-weight: 600;
  }

  .a1-demo-accounts tr.credential-row > td:nth-child(3) {
    padding-bottom: 10px;
  }

  .a1-demo-accounts tr.credential-row > td:last-child {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a1-demo-accounts tr.credential-row > td,
  .a1-form-shell a.a1-demo-accounts__use {
    transition: none;
  }
}
