/* Only the form layout: identity, typography, section, cards and buttons come from the active CMS theme. */
.cms-authentication {
    --auth-line: var(--hero-line, var(--car-line, var(--voy-line, var(--line, #ddd))));
    --auth-primary: var(--hero-primary, var(--car-blue, var(--voy-primary, var(--ink, #333))));
    --auth-surface: var(--hero-bg, var(--car-surface, var(--voy-surface, var(--paper, #fff))));
}
.cms-authentication-content { width: 100%; max-width: 480px; margin: 0 auto; }
.cms-authentication-content--register { max-width: 1000px; }
.cms-authentication-content h1 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.cms-authentication .form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.2rem; min-width: 0; }
.cms-authentication label { font-size: var(--fs-sm, .9rem); font-weight: 600; }
.cms-authentication .form-control { box-sizing: border-box; width: 100%; padding: .75rem .9rem; border: 1px solid var(--auth-line); border-radius: var(--radius-sm, var(--radius, 8px)); font: inherit; background: var(--auth-surface); color: inherit; }
.cms-authentication .form-control:focus { outline: 2px solid var(--auth-primary); outline-offset: 2px; }
.cms-authentication .form-group > button, .cms-authentication .form-group > a, .cms-authentication .car-field > button, .cms-authentication .car-field > a { justify-content: center; width: 100%; }
.cms-authentication .checkbox { display: flex; align-items: baseline; gap: .65rem; margin: 1rem 0; }
.cms-authentication .checkbox input { flex: none; }
.cms-authentication .g-recaptcha { margin: 1rem 0; max-width: 100%; overflow: auto; }
.cms-authentication .alert { padding: 1rem; border: 1px solid var(--auth-line); border-radius: var(--radius, 8px); margin-bottom: 1rem; }
.cms-authentication .text-danger, .cms-authentication .alert-danger { color: var(--hero-warn, #b42318); }
.cms-authentication .alert-success { color: #187345; }
.cms-authentication .alert-danger { background: #fdeef0; border-color: #f6c9cf; }
.cms-authentication .alert-validation { font-size: .9rem; margin: .25rem 0; }
.cms-authentication .honey-element { display: none !important; }
.cms-authentication-links, .cms-authentication .tw-text-center { text-align: center; margin-top: 1.5rem; }
.cms-authentication .register-contact-custom-fields, .cms-authentication .register-company-custom-fields { min-width: 0; }
.cms-authentication #register-form .panel-body > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.cms-authentication #register-form .col-md-12 { grid-column: 1 / -1; }
.cms-authentication #register-form h4 { margin-bottom: 1rem; }
.cms-authentication #register-form .panel-footer { margin-top: 1.5rem; text-align: end; }
@media (max-width: 640px) { .cms-authentication #register-form .panel-body > .row { grid-template-columns: 1fr; } }
.cms-authentication .voy-booking-card { position: static; }

/* Select dropdowns (bootstrap-select): Bootstrap itself is not loaded on these pages, so the parts of its dropdown/button styles that the widget relies on
   live here, with the colours of the active theme. Without them the menu is shown open, unstyled and on top of the form. */
.cms-authentication .bootstrap-select { position: relative; display: block; width: 100% !important; vertical-align: middle; }
.cms-authentication .bootstrap-select > .dropdown-toggle { position: relative; display: block; width: 100%; box-sizing: border-box; padding: .75rem 2.2rem .75rem .9rem; border: 1px solid var(--auth-line); border-radius: var(--radius-sm, var(--radius, 8px)); background: var(--auth-surface); color: inherit; font: inherit; line-height: 1.4; text-align: left; white-space: nowrap; cursor: pointer; box-shadow: none; }
.cms-authentication .bootstrap-select > .dropdown-toggle:focus, .cms-authentication .bootstrap-select.open > .dropdown-toggle { outline: 2px solid var(--auth-primary); outline-offset: 2px; }
.cms-authentication .bootstrap-select > .dropdown-toggle .filter-option { display: block; overflow: hidden; text-overflow: ellipsis; }
.cms-authentication .bootstrap-select > .dropdown-toggle .filter-option-inner, .cms-authentication .bootstrap-select > .dropdown-toggle .filter-option-inner-inner { overflow: hidden; text-overflow: ellipsis; }
.cms-authentication .bootstrap-select > .dropdown-toggle .bs-caret { position: absolute; top: 0; right: .9rem; bottom: 0; display: flex; align-items: center; }
.cms-authentication .bootstrap-select .caret { display: inline-block; width: 0; height: 0; border-top: 5px solid currentColor; border-right: 5px solid transparent; border-left: 5px solid transparent; }
.cms-authentication .bootstrap-select .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1060; display: none; float: left; min-width: 100%; margin: 4px 0 0; padding: 0; list-style: none; background: var(--auth-surface); color: inherit; border: 1px solid var(--auth-line); border-radius: var(--radius-sm, var(--radius, 8px)); box-shadow: 0 12px 28px rgba(0, 0, 0, .14); overflow: hidden; }
.cms-authentication .bootstrap-select.open > .dropdown-menu { display: block; }
.cms-authentication .bootstrap-select .dropdown-menu .inner { max-height: 260px !important; overflow-y: auto; }
.cms-authentication .bootstrap-select .dropdown-menu.inner { max-height: none !important; }
.cms-authentication .bootstrap-select .dropdown-menu li { margin: 0; }
.cms-authentication .bootstrap-select .dropdown-menu li a { display: block; padding: .55rem .9rem; color: inherit; text-decoration: none; white-space: nowrap; }
.cms-authentication .bootstrap-select .dropdown-menu li a:hover, .cms-authentication .bootstrap-select .dropdown-menu li a:focus { background: color-mix(in srgb, var(--auth-primary) 10%, transparent); }
.cms-authentication .bootstrap-select .dropdown-menu li.selected a, .cms-authentication .bootstrap-select .dropdown-menu li.active a { background: color-mix(in srgb, var(--auth-primary) 16%, transparent); font-weight: 600; }
.cms-authentication .bootstrap-select .bs-searchbox { padding: .5rem; }
.cms-authentication .bootstrap-select .bs-searchbox .form-control { padding: .5rem .7rem; }
.cms-authentication .bootstrap-select .bs-actionsbox, .cms-authentication .bootstrap-select .popover-title { padding: .4rem .5rem; }
.cms-authentication .bootstrap-select .btn-block, .cms-authentication .bootstrap-select .btn-group { width: 100%; }
.cms-authentication .bootstrap-select > .dropdown-toggle:hover, .cms-authentication .bootstrap-select > .dropdown-toggle:active, .cms-authentication .bootstrap-select.open > .dropdown-toggle { background: var(--auth-surface); color: inherit; border-color: var(--auth-line); box-shadow: none; }
