:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #152b47;
    background: #142c57;
    --access-focus: #175caa;
    --access-wallpaper:
        radial-gradient(ellipse at 70% 8%, #a9d8f270, transparent 56%),
        linear-gradient(151deg, transparent 17%, #afe0fa32 22%, transparent 36% 58%, #6dbaf044 62%, #18468192 68%, transparent 77%),
        linear-gradient(145deg, #27497e 0%, #3875ac 38%, #1c3e73 69%, #10234a 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    background: var(--access-wallpaper);
}

.main-portal {
    color: #15362a;
    background: #102e25;
    --access-wallpaper:
        radial-gradient(ellipse at 70% 8%, #a5e3b969, transparent 56%),
        linear-gradient(151deg, transparent 17%, #b8efbc38 22%, transparent 36% 58%, #8edcaa4a 62%, #194d3894 68%, transparent 77%),
        linear-gradient(145deg, #24503d 0%, #3b805e 38%, #174e38 69%, #102e25 100%);
    --access-logo-shadow: #0c3625a0;
    --access-panel-line: #e5f4e9;
    --access-panel-bg: linear-gradient(170deg, #f3fbf4, #deeee3);
    --access-panel-shadow: 0 2px 0 #f0fff455 inset, 0 24px 60px #082c2066, 0 0 0 1px #194b3555;
    --access-muted: #385648;
    --access-input-line: #789a88;
    --access-input-bg: #fcfffc;
    --access-focus: #196c4c;
    --access-action: #21573e;
    --access-action-tint: #e3f0e8;
    --access-button-line: #174930;
    --access-button-bg: linear-gradient(#2c694c, #1d5038);
    --access-button-hover: #194733;
    --access-bar-bg: #0e3125b8;
    --access-bar-line: #bcf6cb30;
    --access-bar-text: #e3f3e8;
}

.administration-portal {
    color: #3d2134;
    background: #40243d;
    --access-wallpaper:
        radial-gradient(ellipse at 70% 8%, #ffc7dd6b, transparent 56%),
        linear-gradient(151deg, transparent 17%, #ffd1e13b 22%, transparent 36% 58%, #f9aac54f 62%, #7534518a 68%, transparent 77%),
        linear-gradient(145deg, #573049 0%, #ae638a 38%, #713656 69%, #40243d 100%);
    --access-logo-shadow: #49243ba0;
    --access-panel-line: #fff0f8;
    --access-panel-bg: linear-gradient(170deg, #fff5fb, #f3e3ed);
    --access-panel-shadow: 0 2px 0 #fff0fa55 inset, 0 24px 60px #48203966, 0 0 0 1px #71365655;
    --access-muted: #694458;
    --access-input-line: #9c7187;
    --access-input-bg: #fffcfe;
    --access-focus: #963e69;
    --access-action: #793453;
    --access-action-tint: #f5e5ee;
    --access-button-line: #60223f;
    --access-button-bg: linear-gradient(#874261, #692948);
    --access-button-hover: #642643;
    --access-bar-bg: #3d2037bb;
    --access-bar-line: #ffcadb36;
    --access-bar-text: #fae7f2;
}

.salon-portal {
    color: #38281d;
    background: #3d2c24;
    --access-wallpaper:
        radial-gradient(ellipse at 70% 8%, #f7d5a87d, transparent 56%),
        linear-gradient(151deg, transparent 17%, #ffe1b744 22%, transparent 36% 58%, #efbb8752 62%, #6f443288 68%, transparent 77%),
        linear-gradient(145deg, #5c4030 0%, #a87958 38%, #704838 69%, #3d2c24 100%);
    --access-logo-shadow: #3f2417a0;
    --access-panel-line: #fff1de;
    --access-panel-bg: linear-gradient(170deg, #fffbf3, #f3e7d8);
    --access-panel-shadow: 0 2px 0 #fff8eb55 inset, 0 24px 60px #36231766, 0 0 0 1px #68422d55;
    --access-muted: #604936;
    --access-input-line: #947761;
    --access-input-bg: #fffcf8;
    --access-focus: #885735;
    --access-action: #69412a;
    --access-action-tint: #f2e6d8;
    --access-button-line: #533322;
    --access-button-bg: linear-gradient(#805239, #603c29);
    --access-button-hover: #563622;
    --access-bar-bg: #36251dbb;
    --access-bar-line: #ffe0ba36;
    --access-bar-text: #f6e8d8;
}

.staff-screen {
    width: min(100% - 2.5rem, 26rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 9vh, 5rem);
    align-self: center;
    display: grid;
    justify-items: center;
    gap: clamp(1.25rem, 4vh, 2rem);
}

.staff-wordmark {
    display: block;
    width: clamp(9rem, 28vw, 11rem);
    height: auto;
    filter: drop-shadow(0 2px 6px var(--access-logo-shadow, #0e2a56a0));
}

.staff-login-panel {
    width: 100%;
    min-width: 0;
    padding: clamp(1.25rem, 5vw, 2rem);
    border: 1px solid var(--access-panel-line, #e6f4ff);
    border-radius: 12px;
    background: var(--access-panel-bg, linear-gradient(170deg, #f1f8ff, #dceaf8));
    box-shadow: var(--access-panel-shadow, 0 2px 0 #e8f4ff55 inset, 0 24px 60px #061b4766, 0 0 0 1px #16396955);
    overflow-wrap: anywhere;
}

.staff-login-panel header { margin-bottom: 1.4rem; }
.staff-login-panel h1 { margin: 0; font-size: clamp(1.5rem, 4.5vw, 1.85rem); line-height: 1.15; letter-spacing: -.035em; }
.staff-login-panel p { margin: .45rem 0 0; color: var(--access-muted, #3a526e); font-size: .9rem; line-height: 1.5; }
.staff-login-panel form { display: grid; }
.staff-login-panel label { margin-bottom: .35rem; font-size: .875rem; font-weight: 650; }
.staff-login-panel input:not([type="hidden"]) {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid var(--access-input-line, #829bb6);
    border-radius: 6px;
    background: var(--access-input-bg, #fbfdff);
    padding: .65rem .75rem;
    color: inherit;
    font: inherit;
}
.staff-login-panel :is(input, .staff-password) + label { margin-top: .9rem; }
.staff-login-panel :is(input, button, a):focus-visible {
    outline: 2px solid var(--access-focus);
    outline-offset: 3px;
}
.staff-password { display: flex; align-items: center; position: relative; }
.staff-password:has(.staff-password-toggle:not([hidden])) input { padding-inline-end: 6.1rem; }
.staff-password-toggle {
    position: absolute;
    inset-inline-end: .25rem;
    padding: 0 .65rem;
    min-height: 42px;
    min-width: 4.2rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--access-action, #224e7e);
    font: 650 .8rem system-ui, sans-serif;
    cursor: pointer;
}
.staff-password-toggle:hover { background: var(--access-action-tint, #e4effa); }
.staff-submit {
    min-height: 46px;
    margin-top: 1.1rem;
    padding: .66rem .9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    border: 1px solid var(--access-button-line, #143866);
    border-radius: 6px;
    background: var(--access-button-bg, linear-gradient(#2c5589, #1d416e));
    color: white;
    font: 650 .95rem system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
}
.staff-submit:hover { background: var(--access-button-hover, #173c6b); }
.staff-submit[aria-disabled=true] { opacity: .8; cursor: wait; }
.staff-login-panel .staff-login-help { margin-top: 1.15rem; font-size: .82rem; }
.staff-login-help a { color: #214e80; }
.staff-cancel {
    justify-self: start;
    min-height: 44px;
    padding: .5rem 0;
    border: 0;
    background: transparent;
    color: var(--access-action, #214e80);
    font: inherit;
    font-size: .85rem;
    text-decoration: underline;
    cursor: pointer;
}
.staff-login-panel .staff-login-error {
    margin: 0 0 .8rem;
    padding: .65rem .75rem;
    border: 1px solid #d5a5a9;
    border-radius: 5px;
    color: #831e33;
    background: #fff3f4;
}
.staff-desktop-bar {
    min-height: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    padding: .55rem clamp(1rem, 3vw, 2.25rem);
    background: var(--access-bar-bg, #0e2759b8);
    border-top: 1px solid var(--access-bar-line, #aacfff30);
    color: var(--access-bar-text, #e2eeff);
    font-size: .78rem;
}
.staff-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
