/*
 * Receptionist Max public login and registration.
 * Deliberately isolated from the authenticated dashboard and homepage bundles.
 */
body.rmx-public-auth-page {
    --rmx-auth-ink: #0f172a;
    --rmx-auth-muted: #5b6b82;
    --rmx-auth-line: #dce6f2;
    --rmx-auth-blue: #2563eb;
    --rmx-auth-cyan: #0891b2;
    --rmx-auth-focus: rgba(37, 99, 235, .15);
    overflow-x: hidden;
    background: #f5f8fc;
    color: var(--rmx-auth-ink);
}
body.rmx-public-auth-page .mhd-site-main {
    overflow: clip;
    background:
        radial-gradient(circle at 8% 4%, rgba(37, 99, 235, .12), transparent 30%),
        radial-gradient(circle at 92% 10%, rgba(8, 145, 178, .10), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

body.rmx-public-auth-page .mhd-portal-os-page--auth {
    position: relative;
    min-height: calc(100vh - 78px);
    padding: clamp(34px, 5vw, 70px) 0 52px !important;
    background: transparent !important;
}

body.rmx-public-auth-page .mhd-portal-os-page--auth .mhd-container {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 36px)) !important;
    max-width: 1120px !important;
    margin-inline: auto !important;
}

body.rmx-public-auth-page .mhd-portal-orb {
    position: absolute;
    z-index: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(14px);
    opacity: .45;
    pointer-events: none;
}

body.rmx-public-auth-page .mhd-portal-orb.one {
    top: -160px;
    left: -180px;
    background: rgba(37, 99, 235, .20);
}

body.rmx-public-auth-page .mhd-portal-orb.two {
    right: -190px;
    bottom: -150px;
    background: rgba(8, 145, 178, .16);
}

body.rmx-public-auth-page .mhd-portal-os-shell--auth {
    width: 100%;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.rmx-public-auth-page .mhd-portal-os-shell--auth > .mhd-auth-notice {
    max-width: 720px;
    margin: 0 auto 16px;
}

body.rmx-public-auth-page .mhd-auth-shell:not(.mhd-auth-shell--account) {
    display: grid !important;
    grid-template-columns: minmax(320px, .78fr) minmax(520px, 1.22fr) !important;
    gap: clamp(22px, 3.2vw, 38px) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.rmx-public-auth-page .mhd-auth-shell *,
body.rmx-public-auth-page .mhd-auth-shell *::before,
body.rmx-public-auth-page .mhd-auth-shell *::after {
    box-sizing: border-box;
}

body.rmx-public-auth-page .mhd-auth-copy {
    position: sticky !important;
    top: 96px !important;
    align-self: start;
    min-width: 0;
    padding: clamp(30px, 4vw, 46px) !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 30px !important;
    background:
        radial-gradient(circle at 0 0, rgba(34, 211, 238, .22), transparent 36%),
        radial-gradient(circle at 100% 12%, rgba(96, 165, 250, .25), transparent 34%),
        linear-gradient(145deg, #0b1f3a 0%, #123f78 58%, #081526 100%) !important;
    box-shadow: 0 28px 76px rgba(15, 39, 72, .24) !important;
    color: #fff !important;
}

body.rmx-public-auth-page .mhd-auth-copy::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

body.rmx-public-auth-page .mhd-auth-copy .mhd-eyebrow {
    display: inline-flex;
    width: max-content;
    padding: 7px 11px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .10) !important;
    color: #dff6ff !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: .08em !important;
}

body.rmx-public-auth-page .mhd-auth-copy h1 {
    max-width: 540px;
    margin: 18px 0 14px !important;
    color: #fff !important;
    font-size: clamp(36px, 4.2vw, 52px) !important;
    line-height: 1.01 !important;
    letter-spacing: -.055em !important;
    text-wrap: balance;
}

body.rmx-public-auth-page .mhd-auth-copy > p {
    max-width: 540px;
    margin: 0 !important;
    color: rgba(235, 244, 255, .82) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

body.rmx-public-auth-page .mhd-auth-bullets {
    display: grid !important;
    gap: 10px !important;
    margin-top: 26px !important;
}

body.rmx-public-auth-page .mhd-auth-bullets span {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    min-width: 0;
    padding: 11px 12px !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .075) !important;
    color: #f3f8ff !important;
    font-size: 13px !important;
    font-weight: 720 !important;
    line-height: 1.4 !important;
}

body.rmx-public-auth-page .mhd-auth-bullets svg {
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    color: #67e8f9 !important;
}

body.rmx-public-auth-page .mhd-auth-card {
    min-width: 0;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(24px, 3.2vw, 36px) !important;
    overflow: visible !important;
    border: 1px solid rgba(148, 163, 184, .28) !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 26px 70px rgba(30, 55, 88, .13) !important;
    backdrop-filter: blur(16px);
}

body.rmx-public-auth-page .mhd-auth-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    margin: 0 0 26px !important;
    padding: 6px !important;
    border: 1px solid #dce6f2 !important;
    border-radius: 16px !important;
    background: #eef4fa !important;
    box-shadow: none !important;
}

body.rmx-public-auth-page .mhd-auth-tabs button {
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #5b6b82 !important;
    font-size: 14px !important;
    font-weight: 820 !important;
    cursor: pointer;
}

body.rmx-public-auth-page .mhd-auth-tabs button:hover {
    color: #1d4ed8 !important;
    background: rgba(255, 255, 255, .64) !important;
}

body.rmx-public-auth-page .mhd-auth-tabs button.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--rmx-auth-blue), var(--rmx-auth-cyan)) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .20) !important;
}

body.rmx-public-auth-page .mhd-auth-form {
    display: none !important;
    gap: 0 !important;
}

body.rmx-public-auth-page .mhd-auth-form.is-active:not([hidden]) {
    display: block !important;
    animation: none !important;
}

body.rmx-public-auth-page .mhd-auth-form[hidden] {
    display: none !important;
}

body.rmx-public-auth-page .mhd-auth-form h2 {
    margin: 0 0 7px !important;
    color: var(--rmx-auth-ink) !important;
    font-size: clamp(25px, 3vw, 31px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.042em !important;
}

body.rmx-public-auth-page .mhd-auth-form > p {
    margin: 0 0 22px !important;
    color: var(--rmx-auth-muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

body.rmx-public-auth-page .mhd-auth-fields,
body.rmx-public-auth-page .mhd-auth-optional-fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

body.rmx-public-auth-page .mhd-auth-field {
    display: grid !important;
    min-width: 0;
    gap: 7px !important;
    margin: 0 !important;
}

body.rmx-public-auth-page .mhd-auth-field--full {
    grid-column: 1 / -1 !important;
}

body.rmx-public-auth-page .mhd-auth-field > span {
    color: #334155 !important;
    font-size: 12.5px !important;
    font-weight: 780 !important;
    line-height: 1.35;
}

body.rmx-public-auth-page .mhd-auth-field em {
    color: #dc2626 !important;
    font-style: normal;
}

body.rmx-public-auth-page .mhd-auth-field input,
body.rmx-public-auth-page .mhd-auth-field select,
body.rmx-public-auth-page .mhd-auth-field textarea {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid #cfdbea !important;
    border-radius: 13px !important;
    outline: 0 !important;
    background: #fff !important;
    box-shadow: 0 1px 1px rgba(15, 23, 42, .02) !important;
    color: #0f172a !important;
    font: inherit;
    font-size: 14px !important;
    line-height: 1.4;
    transition: border-color .16s ease, box-shadow .16s ease;
}

body.rmx-public-auth-page .mhd-auth-field textarea {
    min-height: 104px !important;
    resize: vertical;
}

body.rmx-public-auth-page .mhd-auth-field input::placeholder,
body.rmx-public-auth-page .mhd-auth-field textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

body.rmx-public-auth-page .mhd-auth-field input:focus,
body.rmx-public-auth-page .mhd-auth-field select:focus,
body.rmx-public-auth-page .mhd-auth-field textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px var(--rmx-auth-focus) !important;
}

body.rmx-public-auth-page .mhd-auth-field input:user-invalid,
body.rmx-public-auth-page .mhd-auth-field select:user-invalid {
    border-color: #ef4444 !important;
}

body.rmx-public-auth-page .mhd-auth-password-help {
    display: block;
    margin: -5px 0 0;
    color: #718096;
    font-size: 11.5px;
    line-height: 1.4;
}

body.rmx-public-auth-page .rmx-password-wrap {
    position: relative;
    display: block;
    width: 100%;
}

body.rmx-public-auth-page .rmx-password-wrap input {
    padding-right: 72px !important;
}

body.rmx-public-auth-page .rmx-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-height: 34px;
    padding: 6px 10px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

body.rmx-public-auth-page .mhd-auth-optional {
    margin: 16px 0 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--rmx-auth-line);
    border-radius: 15px;
    background: #f8fbff;
}

body.rmx-public-auth-page .mhd-auth-optional summary {
    position: relative;
    padding: 13px 44px 13px 15px;
    color: #334155;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

body.rmx-public-auth-page .mhd-auth-optional summary::-webkit-details-marker {
    display: none;
}

body.rmx-public-auth-page .mhd-auth-optional summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 14px;
    display: grid;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    place-items: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: #1d4ed8;
    font-size: 17px;
    line-height: 1;
}

body.rmx-public-auth-page .mhd-auth-optional[open] summary::after {
    content: "−";
}

body.rmx-public-auth-page .mhd-auth-optional-fields {
    padding: 0 15px 15px;
}

body.rmx-public-auth-page .mhd-auth-checkline {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 17px 0 !important;
    color: #526176 !important;
    font-size: 12.5px !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
}

body.rmx-public-auth-page .mhd-auth-checkline input {
    flex: 0 0 auto !important;
    width: 17px !important;
    height: 17px !important;
    margin: 2px 0 0 !important;
    accent-color: var(--rmx-auth-blue);
}

body.rmx-public-auth-page .mhd-auth-checkline span {
    color: inherit !important;
    font-weight: inherit !important;
}

body.rmx-public-auth-page .mhd-auth-form .mhd-btn-full {
    width: 100% !important;
    min-height: 50px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, var(--rmx-auth-blue), var(--rmx-auth-cyan)) !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .22) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 840 !important;
}

body.rmx-public-auth-page .mhd-auth-form .mhd-btn-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .27) !important;
}

body.rmx-public-auth-page .mhd-auth-form .mhd-btn-full:disabled {
    opacity: .72;
    cursor: wait;
    transform: none;
}

body.rmx-public-auth-page .mhd-auth-small-link {
    display: inline-flex;
    margin-top: 14px !important;
    color: #1d4ed8 !important;
    font-size: 13px;
    font-weight: 760 !important;
}

body.rmx-public-auth-page .mhd-auth-notice {
    margin: 0 0 18px !important;
    padding: 13px 15px !important;
    border-radius: 13px !important;
    font-size: 13px;
    line-height: 1.5;
}

body.rmx-public-auth-page .mhd-auth-notice.error {
    border: 1px solid #fecaca !important;
    background: #fff1f2 !important;
    color: #991b1b !important;
}

body.rmx-public-auth-page .mhd-auth-notice.success {
    border: 1px solid #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}

body.rmx-public-auth-page .rmx-auth-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 18px;
    margin: 18px auto 0;
    color: #607087;
    font-size: 12px;
    font-weight: 680;
}

body.rmx-public-auth-page .rmx-auth-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.rmx-public-auth-page .rmx-auth-trust span::before {
    content: "✓";
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 900;
}

body.rmx-public-auth-page .mhd-site-footer {
    margin-top: 0;
}

body.rmx-public-auth-page :is(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(37, 99, 235, .32) !important;
    outline-offset: 2px !important;
}

@media (max-width: 960px) {
    body.rmx-public-auth-page .mhd-portal-os-page--auth .mhd-container {
        width: min(760px, calc(100% - 32px)) !important;
    }

    body.rmx-public-auth-page .mhd-auth-shell:not(.mhd-auth-shell--account) {
        grid-template-columns: 1fr !important;
    }

    body.rmx-public-auth-page .mhd-auth-copy {
        position: relative !important;
        top: auto !important;
        padding: 30px !important;
    }

    body.rmx-public-auth-page .mhd-auth-copy h1 {
        max-width: 660px;
        font-size: clamp(34px, 7vw, 46px) !important;
    }

    body.rmx-public-auth-page .mhd-auth-bullets {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.rmx-public-auth-page .mhd-auth-bullets span {
        height: 100%;
    }
}

@media (max-width: 680px) {
    body.rmx-public-auth-page .mhd-portal-os-page--auth {
        padding: 22px 0 38px !important;
    }

    body.rmx-public-auth-page .mhd-portal-os-page--auth .mhd-container {
        width: min(100% - 18px, 620px) !important;
    }

    body.rmx-public-auth-page .mhd-auth-shell:not(.mhd-auth-shell--account) {
        gap: 14px !important;
    }

    body.rmx-public-auth-page .mhd-auth-copy,
    body.rmx-public-auth-page .mhd-auth-card {
        padding: 20px !important;
        border-radius: 22px !important;
    }

    body.rmx-public-auth-page .mhd-auth-copy h1 {
        margin-top: 14px !important;
        font-size: 34px !important;
    }

    body.rmx-public-auth-page .mhd-auth-copy > p {
        font-size: 14px !important;
    }

    body.rmx-public-auth-page .mhd-auth-bullets {
        grid-template-columns: 1fr !important;
        margin-top: 18px !important;
    }

    body.rmx-public-auth-page .mhd-auth-fields,
    body.rmx-public-auth-page .mhd-auth-optional-fields {
        grid-template-columns: 1fr !important;
    }

    body.rmx-public-auth-page .mhd-auth-field--half {
        grid-column: 1 / -1 !important;
    }

    body.rmx-public-auth-page .mhd-auth-tabs {
        margin-bottom: 20px !important;
    }

    body.rmx-public-auth-page .rmx-auth-trust {
        display: grid;
        justify-content: start;
        width: max-content;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.rmx-public-auth-page *,
    body.rmx-public-auth-page *::before,
    body.rmx-public-auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        animation-duration: 0s !important;
    }
}
