/* Access pages reuse the Graphite V2 palette and Compact typeface/dimensions.
 * Every rule is scoped; workspace, public landing and Admin keep their styles. */
.access-body {
    --graphite-header: #101114;
    --graphite-workspace: #404247;
    --graphite-surface: #4A4D52;
    --graphite-control: #3C3E42;
    --graphite-hover: #57595E;
    --graphite-border: #5B5E64;
    --graphite-border-strong: #73777E;
    --graphite-text: #F7F7F8;
    --graphite-muted: #DDDDDF;
    --graphite-subtle: #C5C5C8;
    --graphite-link: #AECFFF;
    --graphite-link-hover: #D5E5FF;
    --graphite-focus: #AECFFF;
    --graphite-primary: #F7F7F8;
    --graphite-primary-hover: #DDDDDF;
    --graphite-primary-text: #101114;
    --graphite-risk: #FFC0C0;
    --graphite-risk-bg: rgb(231 113 113 / .12);
    --graphite-risk-border: rgb(231 113 113 / .3);
    --access-card-padding: 32px;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--graphite-workspace);
    color: var(--graphite-text);
    color-scheme: dark;
    font-family: "TT Commons Classic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.access-body *, .access-body *::before, .access-body *::after { box-sizing: border-box; }
.access-body [hidden] { display: none !important; }
.access-body :is(a, button, input):focus-visible { outline: 2px solid var(--graphite-focus); outline-offset: 3px; }
.access-body a { color: var(--graphite-link); text-underline-offset: 3px; }
.access-body a:hover { color: var(--graphite-link-hover); }
.access-body .access-skip-link { position: absolute; left: 16px; top: -100px; z-index: 2; padding: 10px 14px; border-radius: 8px; background: var(--graphite-control); }
.access-body .access-skip-link:focus { top: 12px; }
.access-body .access-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    padding: 12px 20px;
    background: var(--graphite-header);
    border-bottom: 1px solid var(--graphite-border);
}
.access-body .access-brand { display: block; width: 164px; max-width: 100%; line-height: 0; }
.access-body .access-brand img { display: block; width: 100%; height: auto; }
.access-body .access-main { width: min(100%, 520px); margin: 0 auto; padding: clamp(32px, 8vh, 80px) 24px 40px; }
.access-body .access-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--access-card-padding);
    border: 1px solid var(--graphite-border);
    border-radius: 16px;
    background: var(--graphite-surface);
    box-shadow: 0 8px 24px rgb(0 0 0 / .08);
    text-align: left;
    overflow-wrap: anywhere;
}
.access-body .access-organization { margin: 0 0 22px; color: var(--graphite-subtle); font-size: 14px; line-height: 1.45; }
.access-body .access-card h1 { margin: 0 0 24px; color: var(--graphite-text); font-size: 28px; font-weight: 600; line-height: 1.2; }
.access-body .access-description { margin: -8px 0 24px; color: var(--graphite-muted); line-height: 1.5; }
.access-body .access-form { width: 100%; margin: 0; }
.access-body .access-field { min-width: 0; margin: 0 0 20px; }
.access-body .access-field label { display: block; margin: 0 0 7px; color: var(--graphite-text); font-size: 15px; font-weight: 500; }
.access-body .access-field input:not([type="hidden"]) {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid var(--graphite-border-strong);
    border-radius: 8px;
    background: var(--graphite-control);
    color: var(--graphite-text);
    font: inherit;
    line-height: 1.5;
}
.access-body .access-field input::placeholder { color: var(--graphite-subtle); opacity: 1; }
.access-body .access-field input[aria-invalid="true"] { border-color: var(--graphite-risk); }
.access-body .access-field input:focus { outline: 2px solid var(--graphite-focus); outline-offset: 2px; }
.access-body .access-field input:-webkit-autofill { -webkit-text-fill-color: var(--graphite-text); caret-color: var(--graphite-text); box-shadow: 0 0 0 100px var(--graphite-control) inset; }
.access-body .password-control button.password-toggle { width: 42px; height: 42px; padding: 10px; border-radius: 6px; }
.access-body .password-control button.password-toggle:hover { background: var(--graphite-hover); color: var(--graphite-text); }
.access-body .access-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 4px 0 0;
    padding: 11px 16px;
    border: 1px solid var(--graphite-primary);
    border-radius: 8px;
    background: var(--graphite-primary);
    color: var(--graphite-primary-text);
    font: inherit;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.access-body .access-primary:hover { border-color: var(--graphite-primary-hover); background: var(--graphite-primary-hover); color: var(--graphite-primary-text); }
.access-body .access-primary:disabled { cursor: wait; opacity: .7; }
.access-body .access-secondary { display: block; width: fit-content; max-width: 100%; margin: 24px auto 0; font-size: 15px; line-height: 1.5; text-align: center; }
.access-body .access-support { margin: 24px 0 0; color: var(--graphite-subtle); font-size: 14px; text-align: center; }
.access-body .access-support a { display: inline-block; }
.access-body .access-message { margin: 0 0 24px; padding: 12px 14px; border: 1px solid var(--graphite-risk-border); border-radius: 8px; background: var(--graphite-risk-bg); color: var(--graphite-risk); font-size: 15px; }
.access-body .access-message .errorlist { margin: 0; }
.access-body .access-field-errors { color: var(--graphite-risk); font-size: 14px; }
.access-body .access-card .errorlist { margin: 7px 0 0; padding-left: 19px; color: var(--graphite-risk); }
.access-body .access-field-help { margin: 8px 0 0; color: var(--graphite-subtle); font-size: 14px; line-height: 1.45; }
.access-body .access-field-help ul { margin: 0; padding-left: 19px; }
.access-body .access-field-help li + li, .access-body .errorlist li + li { margin-top: 5px; }
.access-body [data-access-error] { color: var(--graphite-risk); font-size: 15px; }
@media (max-width: 520px) {
    .access-body { --access-card-padding: 24px; }
    .access-body .access-main { padding: 32px 16px; }
    .access-body .access-card h1 { font-size: 26px; }
}
@media (max-width: 350px) {
    .access-body { --access-card-padding: 20px; }
    .access-body .access-main { padding: 24px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .access-body *, .access-body *::before, .access-body *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Additional access flows share the established card and field components. */
.access-body .access-details { display: grid; gap: 12px; margin: 0 0 24px; }
.access-body .access-details > div { min-width: 0; padding-bottom: 12px; border-bottom: 1px solid var(--graphite-border); }
.access-body .access-details dt { margin: 0 0 3px; color: var(--graphite-subtle); font-size: 14px; }
.access-body .access-details dd { margin: 0; color: var(--graphite-text); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.access-body .access-workspace-address { position: relative; min-width: 0; }
.access-body .access-field .access-workspace-address input { padding-right: 106px; }
.access-body .access-workspace-suffix { position: absolute; top: 50%; right: 13px; transform: translateY(-50%); color: var(--graphite-subtle); pointer-events: none; }
.access-body .access-field .access-workspace-full input,
.access-body .access-field .access-workspace-address:has([data-workspace-suffix][hidden]) input { padding-right: 13px; }
