/* Global Studio corner settings. Controls share one radius; surfaces preserve their established sizes. */
:root {
    --studio-error-rgb: 128, 0, 32;
    --studio-status-active-rgb: 0, 200, 83;
    --studio-status-inactive-rgb: var(--studio-error-rgb);
    /* Change this one RGB setting to change the Studio accent. */
    --studio-accent-rgb: 128, 0, 32;
    --studio-accent-color: rgb(var(--studio-accent-rgb));
    --studio-accent-wash: color-mix(in srgb, var(--studio-accent-color) 3%, white);
    --studio-accent-soft: color-mix(in srgb, var(--studio-accent-color) 6%, white);
    --studio-accent-hover: color-mix(in srgb, var(--studio-accent-color) 10%, white);
    --studio-accent-tint: color-mix(in srgb, var(--studio-accent-color) 12%, white);
    --studio-accent-strong: color-mix(in srgb, var(--studio-accent-color) 85%, black);
    --studio-control-radius: 6px;
    --studio-section-radius: 14px;
    --studio-detail-title-size: 1.05rem;
    --studio-detail-description-size: 0.92rem;
}

@font-face{font-family:Roboto;src:url('/fonts/Roboto.ttf');font-weight:300 800;font-display:swap;} body{margin:0;background:var(--studio-accent-wash);color:#242424;font-family:Roboto,Arial,sans-serif;} .main-shell{padding:0;min-height:100vh;} .status-shell{padding:40px 24px;}


.login-landing-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 20px;
}


.login-landing-header {
    display: flex;
    justify-content: center;
}


.login-language {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem;
    border: 1px solid rgba(36, 36, 36, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 22px rgba(36, 36, 36, 0.05);
}


.login-language-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: #6a5a60;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}


.login-language-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.login-language-option.active {
    background: var(--studio-accent-soft);
    color: var(--studio-accent-strong);
    box-shadow: inset 0 0 0 1px rgba(var(--studio-accent-rgb), 0.14);
}


.login-landing-main {
    display: flex;
    align-items: center;
    justify-content: center;
}


.login-landing-hero {
    position: relative;
    width: 100%;
    max-width: 1120px;
    min-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow: hidden;
}


.login-landing-card {
    position: relative;
    width: min(720px, 100%);
    padding: 3rem 3.25rem;
    border-radius: var(--studio-section-radius);
    color: #242424;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--studio-accent-soft) 95.0%, transparent));
    border: 1px solid rgba(36, 36, 36, 0.08);
    box-shadow: 0 28px 70px rgba(36, 36, 36, 0.14);
    backdrop-filter: blur(10px);
}


.login-landing-accent {
    width: 124px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #242424, var(--studio-accent-color) 72%);
    margin: 0 auto 1.5rem;
}


.login-landing-title {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.1;
    font-size: clamp(1.8rem, 3vw, 2.75rem);
}


.login-landing-body {
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #5b4a50;
}


.login-landing-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}


.login-landing-button {
    width: min(320px, 100%);
    min-height: 52px;
    border-radius: var(--studio-control-radius);
    text-transform: none;
    font-size: 1rem;
    font-weight: 500;
}


.login-landing-footer {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}


.login-landing-footer-logo {
    width: 148px;
    max-width: 100%;
    height: auto;
    opacity: 0.96;
}




.login-landing-actions{gap:12px;}

/* Shared Studio shell rules: the header itself supplies its top inset. */
html, body { min-height:100%; background:linear-gradient(180deg, #fff 0%, var(--studio-accent-wash) 100%); }
.mud-layout { padding-top:0 !important; }
.mud-main-content { margin-top:0 !important; padding-top:0 !important; }
h1:focus { outline:none; }

/* Match MudBlazor's field-outline specificity so controls use the shared radius. */
.mud-input.mud-input-outlined,
.mud-input.mud-input-outlined .mud-input-outlined-border,
.mud-button-root,
.mud-button-outlined,
.login-language,
.login-language-option {
    border-radius: var(--studio-control-radius);
}

/* Override generated theme variables on body so dialogs/popovers inherit the same accent. */
body {
    --mud-palette-background: var(--studio-accent-wash);
    --mud-palette-tertiary: var(--studio-accent-soft);
    --mud-palette-primary: var(--studio-accent-color);
    --mud-palette-primary-rgb: var(--studio-accent-rgb);
    --mud-palette-primary-darken: var(--studio-accent-strong);
    --mud-palette-primary-lighten: color-mix(in srgb, var(--studio-accent-color) 85%, white);
    --mud-palette-primary-text: #fff;
}

/* Control titles retain the shared accent outside focus; validation errors retain their error color. */
.mud-input-control:not(.mud-input-error) .mud-input-label,
.mud-input-control:not(.mud-input-error) > .mud-input-control-input-container > .mud-input-label.mud-input-label-text:not(.mud-input-error) {
    color: rgb(var(--studio-accent-rgb));
}

/* Semantic error color is independent of the configurable accent. */
body {
    --mud-palette-error: rgb(var(--studio-error-rgb));
    --mud-palette-error-rgb: var(--studio-error-rgb);
    --mud-palette-error-darken: color-mix(in srgb, rgb(var(--studio-error-rgb)) 85%, black);
    --mud-palette-error-lighten: color-mix(in srgb, rgb(var(--studio-error-rgb)) 85%, white);
    --mud-palette-error-text: #fff;
}

/* Equal, centered action widths across user management details. */
.mud-button-root.user-management-action { width: 20rem; max-width: 100%; flex: 0 0 auto; justify-self: center; align-self: center; margin-inline: auto; white-space: normal; }
.user-invite-actions .user-management-action { margin-inline: 0; }

/* One decorative viewport layer shared by login, workforce and merchant routes. */
body { isolation: isolate; }
.studio-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #fff, var(--studio-accent-wash));
}
.studio-background-contours,
.studio-background-highlight {
    position: absolute;
    inset: 0;
}
.studio-background-contours,
.studio-background-highlight::after {
    background: rgb(var(--studio-accent-rgb));
    mask: url('/images/studio-contours.svg') repeat;
    mask-size: 1200px 900px;
}
.studio-background-contours { opacity: .055; }
.studio-background-highlight {
    opacity: 0;
    background: radial-gradient(circle 240px at var(--studio-pointer-x, 50%) var(--studio-pointer-y, 50%), rgba(var(--studio-accent-rgb), .045), transparent);
    transition: opacity .3s ease;
}
.studio-background-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    clip-path: circle(190px at var(--studio-pointer-x, 50%) var(--studio-pointer-y, 50%));
    /* Fade the highlighted contour lines smoothly at the spotlight edge. */
    background: radial-gradient(circle 190px at var(--studio-pointer-x, 50%) var(--studio-pointer-y, 50%), rgb(var(--studio-accent-rgb)), transparent);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .studio-background.is-pointer-active .studio-background-highlight { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .studio-background-highlight { display: none; transition: none; }
}
@media print {
    .studio-background { display: none; }
}
.configuration-editor-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(var(--studio-accent-rgb), 0.14);
    border-radius: var(--studio-section-radius);
    background: var(--studio-accent-wash);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

/* Success notifications have a semantic treatment independent of the accent. */
.mud-snackbar .mud-alert-filled-success,
.mud-snackbar .mud-alert-outlined-success,
.mud-snackbar .mud-alert-text-success {
    background-color: #14532d;
    border: 1px solid #000;
    color: #fff;
}
.mud-snackbar .mud-alert-filled-success .mud-alert-icon,
.mud-snackbar .mud-alert-outlined-success .mud-alert-icon,
.mud-snackbar .mud-alert-text-success .mud-alert-icon,
.mud-snackbar .mud-alert-filled-success .mud-icon-button,
.mud-snackbar .mud-alert-outlined-success .mud-icon-button,
.mud-snackbar .mud-alert-text-success .mud-icon-button {
    color: #fff;
}
