/* /Components/Account/Shared/LegacyLoginFields.razor.rz.scp.css */
/* Experience Cloud's sign-in page, measured off the live one - every number below came
   from getBoundingClientRect or getComputedStyle on the real page, not from looking at a
   screenshot.
   
   Kept in one file so removing the disguise is deleting two files and a flag. */

/* The page itself: plain white, the whole viewport, with the block centred in it. No
   card and no panel - the original has neither, and ours cannot borrow the app's
   background or the white would stop at the column's edge. */
.legacy-login[b-fmmpm8bqsz] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: #fff;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.legacy-column[b-fmmpm8bqsz] {
    width: 256px;
    text-align: left;
}

/* 128x31, centred over the 256px column, 10px above the first field. */
.legacy-logo[b-fmmpm8bqsz] {
    display: block;
    width: 128px;
    height: 31px;
    margin: 0 auto 10px;
}

/* Two separate 256x51 boxes, 10px apart - not one box with a divider. */
.legacy-field[b-fmmpm8bqsz] {
    display: flex;
    /* Top-aligned, not centred: theirs sits at the padding edge, 13px from the field top,
       and the input rides 3px below that. Centring both looked tidier and was wrong. */
    align-items: flex-start;
    box-sizing: border-box;
    width: 256px;
    height: 51px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.legacy-field + .legacy-field[b-fmmpm8bqsz] {
    margin-top: 10px;
}

.legacy-icon[b-fmmpm8bqsz] {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    fill: #464646;
}

/* ::deep, because InputText is a component: the <input> it renders is not written in this
   file's markup, so it never receives this component's scoped-CSS attribute and a plain
   .legacy-input rule matches nothing at all. The rule was present and inert, which is the
   worst way for a style to be wrong.
   
   A fixed 161px, not a stretch to the field's edge: theirs leaves 45px of slack on the
   right, which is what SLDS's own input does. */
.legacy-field[b-fmmpm8bqsz]  .legacy-input {
    flex: 0 0 161px;
    width: 161px;
    min-width: 0;
    margin: 3px 0 0 10px;
    padding: 1px 2px;
    border: 0;
    outline: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    color: #464646;
    background: transparent;
}

.legacy-field[b-fmmpm8bqsz]  .legacy-input::placeholder {
    color: #464646;
    opacity: 1;
}

/* 15px below the password field, 256x45. */
.legacy-button[b-fmmpm8bqsz] {
    display: block;
    box-sizing: border-box;
    width: 256px;
    height: 45px;
    margin: 15px 0 0;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 22.8571px;
    color: #fff;
    text-align: center;
    background: #126639;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}

.legacy-button:hover[b-fmmpm8bqsz] {
    background: #0d4d2b;
}

.legacy-link[b-fmmpm8bqsz] {
    display: block;
    font-family: helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 17px;
    color: #5b67ea;
    text-decoration: none;
}

/* 17px under the button, then 14px between the links. */
.legacy-button + .legacy-link[b-fmmpm8bqsz] {
    margin-top: 17px;
}

.legacy-link + .legacy-link[b-fmmpm8bqsz] {
    margin-top: 14px;
}

.legacy-link:hover[b-fmmpm8bqsz] {
    text-decoration: underline;
}

/* White on white, matching the old page. Not display:none - it keeps its line, its height
   and its place in the tab order, which is what the original does. */
.legacy-link-hidden[b-fmmpm8bqsz] {
    color: #fff;
}

.legacy-link-hidden:hover[b-fmmpm8bqsz],
.legacy-link-hidden:focus[b-fmmpm8bqsz] {
    color: #5b67ea;
}

.legacy-validation[b-fmmpm8bqsz] {
    width: 256px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #c23934;
}

/* The original is a fixed 256px and overflows a narrow phone. Ours does not, which is a
   difference nobody will report. */
@media (max-width: 320px) {
    .legacy-login[b-fmmpm8bqsz],
    .legacy-field[b-fmmpm8bqsz],
    .legacy-button[b-fmmpm8bqsz] {
        width: 100%;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Chrome for the signed-in portal, measured off core-scientific.com: a dark utility strip,
   a 91px white header, Montserrat 700 uppercase nav at 14px, and the plum the marketing
   site uses for headings rather than the near-black of its body copy. */

.portal-shell[b-8sux28unoy] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Utility strip. Measured off core-scientific.com: a near-black navy between a 5px rule
   above and a 1px rule below, both in the lighter blue, and a CTA that is Source Sans in
   sentence case rather than the Montserrat the nav uses. */

.utility-bar[b-8sux28unoy] {
    background: var(--topbar);
    border-top: 5px solid var(--topbar-rule);
    border-bottom: 1px solid var(--topbar-rule);
    color: var(--ink-faint);
    font-size: 0.875rem;
}

.utility-inner[b-8sux28unoy], .header-inner[b-8sux28unoy], .footer-inner[b-8sux28unoy] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 21px;
}

.utility-inner[b-8sux28unoy] {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-height: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.utility-fact[b-8sux28unoy] {
    color: var(--ink-faint);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

a.utility-fact:hover[b-8sux28unoy] { color: #fff; }

.utility-icon[b-8sux28unoy] {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: currentColor;
}

.utility-link[b-8sux28unoy] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    padding-left: 2.1875rem;
    border-left: 1px solid var(--topbar-rule);
    color: var(--ink-faint);
    text-decoration: none;
    white-space: nowrap;
}

.utility-link:hover[b-8sux28unoy] { color: #fff; }

.utility-chevron[b-8sux28unoy] {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Header */

.site-header[b-8sux28unoy] { background: var(--card); border-bottom: 1px solid var(--line); }

.header-inner[b-8sux28unoy] {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 91px;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.brand[b-8sux28unoy] { display: inline-flex; flex: 0 0 auto; }
.brand img[b-8sux28unoy] { height: 38px; width: auto; }

/* Its own line, under the brand and the signed-in account. Sharing a line put "Sign out"
   after the last nav item, where it read as one more place to go rather than as something
   about the person signed in. */
.primary-nav[b-8sux28unoy] {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    flex-basis: 100%;
    margin-top: -0.5rem;
    padding-bottom: 0.75rem;
}

.primary-nav[b-8sux28unoy]  a {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--ink-heading);
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.primary-nav[b-8sux28unoy]  a:hover { color: var(--brand-orange); }

/* The marketing site boxes its current section; a rule reads the same at this size
   without the box fighting the header's own border. */
.primary-nav[b-8sux28unoy]  a.active {
    color: var(--brand-orange);
    border-bottom-color: var(--brand-orange);
}

/* The location switcher, then the user's name and sign-out, together at the right. */
.account-area[b-8sux28unoy] { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 0 auto; }
.account[b-8sux28unoy] { display: flex; align-items: center; gap: 0.75rem; }
.account-name[b-8sux28unoy] { color: var(--ink-muted); font-size: 0.875rem; text-decoration: none; }
.account-name:hover[b-8sux28unoy] { color: var(--ink-heading); text-decoration: underline; }

.account-signout[b-8sux28unoy] {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: var(--heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--brand-orange-dark);
}

.account-signout:hover[b-8sux28unoy] { text-decoration: underline; }

.header-button[b-8sux28unoy] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 3px;
    font-size: 0.875rem;
    color: var(--ink-heading);
}

.header-button[b-8sux28unoy] { text-decoration: none; }
.header-button:hover[b-8sux28unoy] { background: var(--surface); color: var(--brand-orange-dark); text-decoration: none; }

.header-button svg[b-8sux28unoy], .new-button svg[b-8sux28unoy] {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The nav's one action, set apart as the tab bar's New is. */
/* Spelled .primary-nav .new-button so it outranks the nav's own link rule, which
   otherwise strips its padding and colours it like a link. */
.primary-nav .new-button[b-8sux28unoy] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 3px;
    font-family: var(--heading);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    background: var(--brand-orange);
    color: #fff;
    border-bottom: 0;
}

.primary-nav .new-button:hover[b-8sux28unoy] { background: var(--brand-orange-dark); color: #fff; text-decoration: none; }
.new-button svg[b-8sux28unoy] { width: 16px; height: 16px; stroke-width: 2.4; }

/* Page */

.page[b-8sux28unoy] {
    flex: 1 1 auto;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 21px 4rem;
}

/* Footer. The marketing site closes on a dark grey bar: copyright left, legal links
   right, both small and white. */

.site-footer[b-8sux28unoy] {
    background: #3d3d3d;
    color: #fff;
    font-size: 0.8rem;
}

.footer-inner[b-8sux28unoy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 15px;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.footer-copyright[b-8sux28unoy] { color: #fff; }

.footer-legal[b-8sux28unoy] { display: flex; gap: 1.5rem; }

.site-footer a[b-8sux28unoy] { color: #fff; text-decoration: none; }
.site-footer a:hover[b-8sux28unoy] { text-decoration: underline; }

/* The nav and the account block stop fitting on one line well before phone width, so the
   nav drops to a full row of its own while the logo and the account stay paired. */
@media (max-width: 900px) {
    .header-inner[b-8sux28unoy] {
        min-height: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
        row-gap: 0.75rem;
    }

    .primary-nav[b-8sux28unoy] {
        order: 3;
        flex-basis: 100%;
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .utility-inner[b-8sux28unoy] { gap: 0.75rem 1.25rem; }

    /* The address is the first thing worth losing: the phone number and the way back are
       both actionable, and it is in the footer anyway. */
    .utility-inner > .utility-fact:first-child[b-8sux28unoy] { display: none; }

    .utility-link[b-8sux28unoy] {
        margin-left: auto;
        padding-left: 1.25rem;
    }

    .primary-nav[b-8sux28unoy] { gap: 0.9rem; font-size: 0.8125rem; }
    .primary-nav[b-8sux28unoy]  a { font-size: 0.8125rem; }

    /* The name is the menu's handle now, so it stays - shortened rather than hidden. */
    .account-name[b-8sux28unoy] { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

    .footer-inner[b-8sux28unoy] { justify-content: center; text-align: center; }
    .footer-legal[b-8sux28unoy] { gap: 1.25rem; }

    /* Signed in, the tab bar carries the nav and the user menu, and the account sheet the
       phone number and the way back - so the header is the logo and, for a group, the
       location. A third of the first screen was chrome before. */
    .has-tabs .utility-bar[b-8sux28unoy],
    .has-tabs .primary-nav[b-8sux28unoy],
    .has-tabs .account-name[b-8sux28unoy] { display: none; }

    /* Help is an icon here. */
    .has-tabs .header-button span[b-8sux28unoy] { display: none; }
    /* 44px square: the least a thumb should have to hit. */
    .has-tabs .header-button[b-8sux28unoy] { justify-content: center; min-width: 44px; min-height: 44px; padding: 0; margin-right: -12px; }

    .has-tabs .header-inner[b-8sux28unoy] {
        min-height: 56px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .has-tabs .brand img[b-8sux28unoy] { height: 30px; }
    .has-tabs .account-area[b-8sux28unoy] { flex: 1 1 auto; justify-content: flex-end; min-width: 0; gap: 0.5rem; }

    /* Sticky, so the logo and the location stay put while a long list scrolls. */
    .has-tabs .site-header[b-8sux28unoy] { position: sticky; top: 0; z-index: 30; }

    /* Room for the tab bar, and for the home indicator below it. */
    .has-tabs .page[b-8sux28unoy] { padding: 1.25rem 16px 1.5rem; }

    /* The header's edge lines up with the page's 16px, as the content does. */
    .has-tabs .header-inner[b-8sux28unoy], .has-tabs .footer-inner[b-8sux28unoy] { padding-left: 16px; padding-right: 16px; }

    /* One quiet line on the page's own background, not a dark band above the tab bar -
       it clears the tab bar itself. */
    .has-tabs .site-footer[b-8sux28unoy] {
        background: transparent;
        color: var(--ink-muted);
        font-size: 0.75rem;
        border-top: 1px solid var(--line);
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
    .has-tabs .footer-inner[b-8sux28unoy] { padding-top: 0.75rem; padding-bottom: 0.75rem; gap: 1rem; flex-wrap: nowrap; }
    .has-tabs .footer-copyright[b-8sux28unoy],
    .has-tabs .site-footer a[b-8sux28unoy] { color: var(--ink-muted); }
    .has-tabs .footer-legal[b-8sux28unoy] { gap: 1rem; }
    .has-tabs .footer-long[b-8sux28unoy] { display: none; }
    /* Elsewhere only the room for the tab bar stays. */
    .has-tabs .site-footer:not(.footer-here)[b-8sux28unoy] { border-top: 0; }
    .has-tabs .site-footer:not(.footer-here) .footer-inner[b-8sux28unoy] { display: none; }
}

@media (max-width: 380px) {
    .brand img[b-8sux28unoy] { height: 30px; }
    .utility-inner[b-8sux28unoy] { font-size: 0.8125rem; }
}

#blazor-error-ui[b-8sux28unoy] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-8sux28unoy] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* The menu under the person's name. */
.user-menu[b-8sux28unoy] { position: relative; }
.user-menu summary[b-8sux28unoy] { cursor: pointer; list-style: none; }
.user-menu summary[b-8sux28unoy]::-webkit-details-marker { display: none; }
.user-menu summary[b-8sux28unoy]::after { content: " \25BE"; font-size: 0.75em; }
.user-menu-items[b-8sux28unoy] {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 20;
    min-width: 12rem;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0;
}
.user-menu-items a[b-8sux28unoy],
.user-menu-items .account-signout[b-8sux28unoy] {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--ink-heading);
    text-decoration: none;
}
.user-menu-items a:hover[b-8sux28unoy] { background: var(--surface); }
.user-menu-items form[b-8sux28unoy] { margin: 0; border-top: 1px solid var(--line); margin-top: 0.35rem; padding-top: 0.35rem; }

/* The New request and Help dialogs. */
.help-dialog[b-8sux28unoy] {
    width: min(92vw, 440px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.help-dialog[b-8sux28unoy]::backdrop { background: rgba(33, 35, 49, 0.5); }

.help-head[b-8sux28unoy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0.5rem 1.5rem;
}

.help-head h2[b-8sux28unoy] { margin: 0; font-size: 1.125rem; }

.help-close[b-8sux28unoy] {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink-muted);
    cursor: pointer;
}

.help-close:hover[b-8sux28unoy] { background: var(--surface); color: var(--ink-heading); }

.help-options[b-8sux28unoy] { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.5rem 1.25rem 1.5rem; }

.help-option[b-8sux28unoy] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-heading);
    text-decoration: none;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.help-option:hover[b-8sux28unoy] { border-color: var(--brand-orange); background: #fffaf5; text-decoration: none; }

.help-text[b-8sux28unoy] { display: flex; flex-direction: column; gap: 0.15rem; }
.help-text strong[b-8sux28unoy] { font-size: 1rem; }
.help-text span[b-8sux28unoy] { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.35; }

/* On a phone, a sheet from the bottom. */
@media (max-width: 600px) {
    .help-dialog[b-8sux28unoy] {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        border-radius: 16px 16px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
}
