/* The sign-in page shares the workspace's blue, white, and slate palette. */
.login-page {
    --paper: #f5f8fc;
    --surface: #fff;
    --ink: #132344;
    --muted: #687b96;
    --line: #e1eaf4;
    --accent: #168ddc;
    --accent-hover: #0877c4;
    --button-navy: #168ddc;
    --button-navy-hover: #0877c4;
    background: linear-gradient(155deg, #eaf6ff 0%, #f4f9fd 56%, #e6f3fb 100%);
    color: var(--ink);
}
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh; }
.login-navigation { position: absolute; top: 24px; right: clamp(24px, 4vw, 64px); z-index: 3; }
.login-page .admin-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--surface);
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: none;
}
.login-page .admin-login-link:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.login-page .admin-login-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.login-navigation + .login-layout .login-form-side { padding-top: 92px; }
.login-art {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 32px clamp(28px, 4vw, 64px);
    overflow: hidden;
}
.login-page .studio-brand { padding: 0; color: var(--ink); }
.login-page .brand-mark {
    width: 74px;
    height: 74px;
    font-size: 1.8125rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f8be2, #45c6e5);
    color: #fff;
    box-shadow: 0 8px 18px #149ce62a;
}
.login-page .brand-mark > span { color: #fff; }
.login-page .brand-name { display: block; color: #12254b; font-size: 1.125rem; line-height: 1.3; }
.login-page .brand-name small { color: #6e91b2; font-size: 0.75rem; }
.print-gallery { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.print-composition { width: 100%; display: flex; align-items: center; justify-content: center; padding: 36px 8px 18px; }
.print-stage { position: relative; width: min(100%, 440px, 56vh); aspect-ratio: 3 / 4; isolation: isolate; }
.print-stage::before {
    content: '';
    position: absolute;
    inset: 13px -12px -13px 12px;
    background: #dceaf5;
    border: 1px solid #cadfee;
    border-radius: 18px;
    transform: rotate(3deg);
}
.print-sheet {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: clamp(22px, 2.3vw, 32px);
    background: #fff;
    border: 1px solid #dce8f3;
    border-radius: 18px;
    box-shadow: 0 18px 38px #24426716;
    opacity: 0;
    transform: translateX(42px) rotate(4deg) scale(.96);
    transition: opacity .65s ease, transform .8s cubic-bezier(.22,.7,.22,1);
    pointer-events: none;
}
.print-sheet.is-past { transform: translateX(-42px) rotate(-8deg) scale(.96); }
.print-sheet.is-active { opacity: 1; transform: translateX(0) rotate(-4deg) scale(1); z-index: 2; }
.proof-label, .proof-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #52708e;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.proof-label { padding-bottom: 13px; border-bottom: 1px solid #e3ebf4; }
.proof-footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid #e3ebf4; font-size: 0.625rem; }
.print-sheet h2 {
    margin: clamp(20px, 3vh, 34px) 0 18px;
    color: #102449;
    font-size: clamp(41px, calc(4.8vw + 2px),  70px);
    line-height: .94;
    letter-spacing: -3px;
    font-weight: 700;
}
.print-sheet h2 span { color: #168ddc; }
.print-slide-color { background: #fdfefe; }
.print-slide-color h2 span { color: #21a6d8; }
.print-slide-bold { background: #f7fbff; }
.print-slide-bold h2 span { color: #2374bd; }
.proof-graphic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: clamp(50px, 9vh, 82px); margin-top: 24px; }
.proof-graphic span { border-radius: 48% 48% 5px 5px; background: #197bd1; }
.proof-graphic span:nth-child(2) { background: #39addd; }
.proof-graphic span:nth-child(3) { background: #8bd5e9; }
.proof-graphic span:nth-child(4) { background: #173c70; }
.color-registration { display: flex; align-items: center; height: clamp(54px, 9vh, 82px); padding-left: 6px; margin-top: 24px; }
.color-registration span { width: clamp(58px, 6vw, 85px); aspect-ratio: 1; border-radius: 50%; background: #6bc8e9; mix-blend-mode: multiply; }
.color-registration span + span { margin-left: -21px; }
.color-registration span:nth-child(2) { background: #3f9bdd; }
.color-registration span:nth-child(3) { background: #b1def3; }
.print-lines { display: grid; gap: 7px; height: clamp(52px, 9vh, 82px); margin-top: 24px; }
.print-lines span { background: #194e8d; transform: skewX(-12deg); }
.print-lines span:nth-child(2) { width: 85%; background: #2d84c9; }
.print-lines span:nth-child(3) { width: 65%; background: #79b9e1; }
.print-lines span:nth-child(4) { width: 45%; background: #c1e2f4; }
.crop-mark { position: absolute; width: 16px; height: 16px; border-color: #8bb3d1; border-style: solid; }
.crop-mark.tl { top: -8px; left: -8px; border-width: 1px 0 0 1px; }
.crop-mark.tr { top: -8px; right: -8px; border-width: 1px 1px 0 0; }
.crop-mark.bl { bottom: -8px; left: -8px; border-width: 0 0 1px 1px; }
.crop-mark.br { bottom: -8px; right: -8px; border-width: 0 1px 1px 0; }
.print-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 440px, 56vh);
    margin: 16px 0 8px;
}
.print-gallery-dots { display: flex; gap: 5px; }
.login-page .print-gallery-dots button {
    display: grid;
    place-items: center;
    min-width: 32px;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
}
.print-gallery-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9db9d0; transition: width .3s ease, background .3s ease; }
.print-gallery-dots button[aria-pressed=true]::before { width: 24px; border-radius: 8px; background: var(--accent); }
.login-form-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 42px clamp(24px, 5vw, 72px);
}

.login-mobile-brand { display: none; }
.login-box {
    width: min(100%, 450px);
    padding: clamp(30px, 3.4vw, 48px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 40px #1b456b0c;
}
.login-kicker { margin: 0 0 9px; color: #168ddc; font-size: 0.8125rem; font-weight: 700; letter-spacing: 1.3px; }
.login-box h1 { margin: 0 0 8px; color: #102449; font-size: clamp(29px, calc(2.6vw + 2px),  36px); font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
.login-intro { margin: 0 0 30px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.login-field { margin-bottom: 22px; }
.login-box .login-field label { display: block; margin: 0 0 8px; color: #2d4162; font-size: 1rem; font-weight: 600; }
.login-box input:not([type=checkbox]) {
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    color: var(--ink);
    font-size: 1.0625rem;
    background: #fff;
    border: 1px solid #ccdbe9;
    border-radius: 12px;
}
.login-box input::placeholder { color: #7a8da5; }
.login-box input:focus {
    outline: 0;
    border-color: #168ddc;
    box-shadow: 0 0 0 4px #168ddc1e;
}
.password-field { position: relative; }
.login-box .password-field input { padding-right: 58px; }
.login-page .password-toggle {
    position: absolute;
    inset: 5px 6px 5px auto;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #476889;
    font-size: 1.3125rem;
}
.login-page .password-toggle:hover { color: #0877c4; background: #eaf6ff; }
.password-toggle [hidden] { display: none !important; }
.login-page .password-toggle:focus-visible { outline: 2px solid #168ddc; outline-offset: 1px; }
.login-box #password::-ms-reveal, .login-box #password::-ms-clear { display: none !important; }
.login-page .login-submit {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    margin-top: 4px;
    padding: 13px 18px;
    color: #fff;
    background: #168ddc;
    border: 1px solid #168ddc;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 700;
}
.login-page .login-submit:hover { background: #0877c4; border-color: #0877c4; }
.login-page .login-submit .app-icon { transform: rotate(180deg); font-size: 1.25rem; }
.login-help { margin: 27px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.login-page .admin-contact-trigger { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #0877c4; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.login-page .admin-contact-trigger:hover { color: #075d9b; background: transparent; }
.admin-contact-trigger:focus-visible { outline: 2px solid #168ddc; outline-offset: 3px; }
.login-error { margin-bottom: 22px; padding: 12px 14px; color: #a14b3b; background: #fff2ee; border: 1px solid #f3d2c8; border-radius: 10px; font-size: 0.9375rem; }
.admin-contact-dialog {
    width: min(400px, calc(100% - 36px));
    max-width: none;
    margin: auto;
    padding: 28px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 22px 70px #17365830;
}
.admin-contact-dialog::backdrop { background: #13234480; }
.admin-contact-dialog h2 { margin: 0 0 10px; color: #102449; font-size: 1.4375rem; }
.admin-contact-dialog p { margin: 0 0 14px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.admin-contact-email { color: #0877c4; font-size: 1.125rem; overflow-wrap: anywhere; }
.admin-contact-dialog form { display: flex; justify-content: flex-end; margin: 26px 0 0; }
.login-page .admin-contact-dialog button { min-height: 42px; padding: 10px 18px; color: #fff; background: #168ddc; border: 1px solid #168ddc; border-radius: 10px; }
.login-page .admin-contact-dialog button:hover { background: #0877c4; }
@media (max-width: 900px) {
    .login-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .login-art { padding: 28px 24px; }
    .login-form-side { padding: 28px 22px; }
    .print-stage, .print-gallery-controls { width: min(100%, 340px, 48vh); }
}
@media (max-width: 680px) {
    .login-navigation { position: static; display: flex; justify-content: flex-end; padding: 16px 18px 0; }
    .login-navigation + .login-layout { min-height: calc(100dvh - 60px); }
    .login-navigation + .login-layout .login-form-side { padding-top: 16px; }
    .login-layout { display: flex; flex-direction: column; }
    .login-art { display: none; }
    .login-form-side { justify-content: flex-start; padding: 16px 18px 24px; }
    .login-mobile-brand { display: flex; align-self: flex-start; margin-bottom: 16px; }

    .login-box { width: min(100%, 450px); }
}
@media (max-width: 420px) {
    .login-form-side { padding-inline: 14px; }
    .login-box { padding: 28px 22px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .print-sheet, .print-gallery-dots button::before { transition: none; }
}
