/* Only the company authentication asset loads this stylesheet. */
.company-auth-layout .company-auth-mobile,
.company-auth-layout .company-auth-mobile :where(input, select, button, label, a, p, span, div, h1, h2, h3, h4) { font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important; }
.company-auth-password { position: relative; }
.company-auth-password .form-control { padding-right: 3.5rem !important; }
.company-auth-layout .company-auth-password .form-control { background-image: none !important; }
/* The eye-button wrapper separates the input from Bootstrap's sibling-only error selector. */
.company-auth-layout .company-auth-mobile .invalid-feedback:not(:empty) { display: block; position: static; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.company-auth-layout .company-auth-mobile .form-control.is-invalid { border-color: #dc3545 !important; }
.company-auth-layout .company-auth-mobile .form-control.is-invalid:focus { box-shadow: 0 0 0 .18rem rgba(220,53,69,.15); }
.company-auth-password-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: #475569; }
.company-auth-password-toggle svg { width: 22px; height: 22px; }
.company-auth-password-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.company-auth-mobile-topbar, .company-auth-mobile-footer { display: none; }
.company-auth-layout #request-password-reset-form .pagecode-auth-submit { margin-top: 12px; }
.company-auth-layout .pagecode-login-card .login-card-links > div,
.company-auth-layout .pagecode-login-card .login-card-links a { font-size: .875rem !important; font-weight: 500 !important; line-height: 1.5 !important; }
.company-auth-layout select.pagecode-auth-language,
.company-auth-layout .company-auth-desktop-header select.select-button-header {
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    min-height: 44px;
    padding: .5rem 30px .5rem 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%231e293b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px 12px;
    color: #1e293b;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
}
.company-auth-layout select.pagecode-auth-language option,
.company-auth-layout .company-auth-desktop-header select.select-button-header option { background: #fff; color: #1e293b; }
.company-auth-layout select.pagecode-auth-language:focus-visible,
.company-auth-layout .company-auth-desktop-header select.select-button-header:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 767.98px), (max-width: 991.98px) and (max-height: 500px) {
    .company-auth-mobile { font-size: .875rem; font-weight: 400; line-height: 1.5; }
    .company-auth-mobile .form-login label, .company-auth-mobile .form-login-page label { font-size: .875rem !important; font-weight: 500 !important; line-height: 1.5; }
    .company-auth-mobile .form-login-page .company-auth-checkbox,
    .company-auth-mobile #form-signup .field-formsignupclientform-terms_and_conditions label { font-weight: 400 !important; }
    .company-auth-mobile .company-auth-checkbox input { vertical-align: middle; margin-right: .35rem; }
    .company-auth-layout { margin: 0; }
    .company-auth-layout > .body { margin: 0; padding: 0; }
    .company-auth-desktop-header, .company-auth-desktop-footer { display: none !important; }
    .company-auth-mobile.pagecode-login-page,
    .company-auth-mobile.pagecode-auth-page,
    .company-auth-mobile.company-auth-signup {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        min-height: 100vh;
        min-height: var(--company-auth-viewport, 100dvh);
        width: 100%;
        padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
        background-image: linear-gradient(rgba(6,18,23,.68), rgba(6,18,23,.68)), var(--company-auth-background, linear-gradient(#152025, #384145));
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        position: relative;
        isolation: isolate;
        overflow: visible;
    }
    .company-auth-mobile::before { display: none; }
    .company-auth-mobile .pagecode-auth-topbar {
        position: relative;
        inset: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        min-height: 44px;
        max-width: 560px;
        margin: 0 auto;
        padding: 0;
        gap: 0;
        width: 100%;
        pointer-events: auto;
    }
    .company-auth-mobile .pagecode-auth-topbar-logo { display: none; }
    .company-auth-mobile .pagecode-login-shell,
    .company-auth-mobile .pagecode-auth-shell,
    .company-auth-mobile.company-auth-signup > .container-fluid { width: 100%; max-width: 560px; margin: auto !important; padding: 0 !important; position: relative; }
    .company-auth-mobile .pagecode-login-card,
    .company-auth-mobile .pagecode-auth-card,
    .company-auth-mobile .form-login-page {
        box-sizing: border-box;
        width: 100%;
        max-width: 560px;
        background: #fff;
        color: #334155;
        border: 1px solid #e2e8f0;
        border-radius: 22px;
        box-shadow: 0 14px 40px rgba(0,0,0,.2);
        padding: 18px !important;
        margin: 0;
        min-width: 0;
    }
    .company-auth-mobile .pagecode-login-brand,
    .company-auth-mobile .pagecode-auth-brand,
    .company-auth-mobile .signup-company-logo-area { display: flex; justify-content: center; margin: 0 0 12px; padding: 0; gap: 0; }
    .company-auth-mobile .pagecode-login-logo-frame,
    .company-auth-mobile .pagecode-auth-logo-frame,
    .company-auth-mobile .signup-company-logo-wrap { width: 72px; height: 72px; padding: 4px; border-radius: 16px; box-shadow: none; margin: 0; background: #fff; border: 1px solid #e2e8f0; }
    .company-auth-mobile .signup-company-logo { width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
    .company-auth-mobile .form-group { margin-bottom: 12px; }
    .company-auth-mobile label { font-size: .875rem; line-height: 1.4; font-weight: 600; margin-bottom: 5px; color: #334155; }
    .company-auth-mobile .form-control { min-height: 50px; height: auto; padding: .65rem .8rem !important; font-size: 1rem !important; line-height: 1.5; border: 1px solid #d8dee8; border-radius: 12px; box-shadow: none; max-width: 100%; }
    .company-auth-mobile .company-auth-password .form-control { padding-right: 3.5rem !important; }
    .company-auth-mobile .btn[type="submit"] { min-height: 50px; height: auto; line-height: 1.4; border-radius: 12px; font-size: .9375rem !important; font-weight: 600; padding: .7rem 1rem !important; white-space: normal; background-color: var(--company-auth-brand, #2563eb) !important; border-color: var(--company-auth-brand, #2563eb) !important; color: #fff !important; }
    .company-auth-mobile .invalid-feedback, .company-auth-mobile .help-block { position: static; white-space: normal; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.4; margin: 4px 0 0; }
    .company-auth-mobile .login-card-links { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
    .company-auth-mobile .login-card-links > div { font-size: .875rem !important; font-weight: 400 !important; line-height: 1.5; white-space: normal; }
    .company-auth-mobile .form-login .login-card-links a,
    .company-auth-mobile .pagecode-auth-card > .text-center a { font-size: .875rem !important; font-weight: 500 !important; line-height: 1.5 !important; }
    .company-auth-mobile a { overflow-wrap: anywhere; color: var(--company-auth-brand, #2563eb) !important; }
    .company-auth-mobile .public-legal-links { gap: 0 12px !important; margin-top: 12px !important; padding-top: 8px !important; line-height: 1.4; }
    .company-auth-mobile .public-legal-links a { font-size: .875rem !important; padding: 5px 0 !important; font-weight: 400; }
    .company-auth-mobile .pagecode-auth-card h2 { font-size: 1.25rem !important; line-height: 1.3; }
    .company-auth-mobile .pagecode-auth-card > p { font-size: .875rem !important; line-height: 1.5; margin-bottom: 16px !important; }
    .company-auth-mobile .pagecode-auth-card > .text-center { font-size: .875rem; }
    .company-auth-mobile .alert { padding: 12px; margin: 12px 0; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
    .company-auth-mobile.company-auth-signup > .container-fluid > .row { padding: 0 !important; margin: 0; }
    .company-auth-mobile .form-login-page > h2 { padding: 0 !important; margin: 0 0 16px !important; font-size: 1.35rem !important; line-height: 1.3; }
    .company-auth-mobile .separator, .company-auth-mobile .vector { display: none; }
    .company-auth-mobile #form-signup .row { padding-top: 0 !important; padding-bottom: 0 !important; --bs-gutter-x: 16px; }
    .company-auth-mobile #form-signup [class*="col-"] { padding-top: 0 !important; padding-bottom: 0 !important; min-width: 0; }
    .company-auth-mobile #form-signup h4 { font-size: 1.05rem; line-height: 1.4; margin: 16px 0 12px; padding-top: 0 !important; }
    .company-auth-mobile #form-signup .form-group .form-group { margin-bottom: 0; }
    .company-auth-mobile #form-signup input[type="checkbox"], .company-auth-mobile #form-signup input[type="radio"] { min-width: 18px; min-height: 18px; }
    .company-auth-mobile #form-signup .col-7, .company-auth-mobile #form-signup .col-5 { width: 100%; text-align: center !important; font-size: .875rem !important; font-weight: 400; line-height: 1.5; margin-top: 8px; }
    .company-auth-mobile #form-signup .col-7 a, .company-auth-mobile #form-signup .col-5 a { font-size: .875rem !important; font-weight: 500; }
    .company-auth-mobile .company-auth-mobile-footer { display: block; }
    .company-auth-mobile input, .company-auth-mobile select, .company-auth-mobile button { scroll-margin-block: 24px; }
    .company-auth-mobile[data-keyboard-open] .pagecode-login-shell, .company-auth-mobile[data-keyboard-open] .pagecode-auth-shell { margin-block: 0 !important; }
}

/* Fit the frame to the logo's natural aspect ratio instead of cropping it into a circle. */
.company-auth-layout .pagecode-login-logo-frame,
.company-auth-layout .pagecode-auth-logo-frame,
.company-auth-layout .signup-company-logo-wrap {
    width: fit-content;
    height: auto;
    max-width: 100%;
    padding: 8px;
    border-radius: 22px;
}
.company-auth-layout .pagecode-login-logo-frame img,
.company-auth-layout .pagecode-auth-logo-frame img,
.company-auth-layout .signup-company-logo-wrap img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(220px, 100%);
    max-height: 128px;
    border-radius: 14px;
    object-fit: contain;
}
.company-auth-layout .pagecode-auth-topbar-logo {
    width: fit-content;
    height: auto;
    max-width: 220px;
    padding: 5px;
    border-radius: 18px;
}
.company-auth-layout .pagecode-auth-topbar-logo img {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 80px;
    border-radius: 12px;
    object-fit: contain;
}
.company-auth-layout .company-auth-desktop-header .image-box-page { width: auto; height: auto; max-width: 220px; }
.company-auth-layout .company-auth-desktop-header .logo-specialcalendar-page { max-width: 220px; max-height: 110px; object-fit: contain; }
@media (max-width: 767.98px), (max-width: 991.98px) and (max-height: 500px) {
    .company-auth-layout .company-auth-mobile .pagecode-login-logo-frame,
    .company-auth-layout .company-auth-mobile .pagecode-auth-logo-frame,
    .company-auth-layout .company-auth-mobile .signup-company-logo-wrap {
        width: fit-content;
        height: auto;
        padding: 4px;
        border-radius: 16px;
    }
    .company-auth-layout .company-auth-mobile .pagecode-login-logo-frame img,
    .company-auth-layout .company-auth-mobile .pagecode-auth-logo-frame img,
    .company-auth-layout .company-auth-mobile .signup-company-logo-wrap img {
        max-width: min(180px, 100%);
        max-height: 64px;
        border-radius: 11px;
    }
}
@media (max-width: 767.98px) and (max-height: 700px), (max-width: 991.98px) and (max-height: 500px) {
    .company-auth-layout .company-auth-mobile .pagecode-login-logo-frame img,
    .company-auth-layout .company-auth-mobile .pagecode-auth-logo-frame img,
    .company-auth-layout .company-auth-mobile .signup-company-logo-wrap img { max-height: 48px; }
}
@media (max-width: 767.98px) and (max-height: 700px), (max-width: 991.98px) and (max-height: 500px) {
    .company-auth-mobile .pagecode-login-card, .company-auth-mobile .pagecode-auth-card, .company-auth-mobile .form-login-page { padding: 14px !important; }
    .company-auth-mobile .pagecode-login-logo-frame, .company-auth-mobile .pagecode-auth-logo-frame, .company-auth-mobile .signup-company-logo-wrap { width: 56px; height: 56px; }
    .company-auth-mobile .pagecode-login-brand, .company-auth-mobile .pagecode-auth-brand, .company-auth-mobile .signup-company-logo-area { margin-bottom: 8px; }
}
