.backend-login {
    margin: 0;
    color: #292524;
    background: #fbfaf8;
    font-family: Figtree, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.backend-login *, .backend-login *::before, .backend-login *::after { box-sizing: border-box; }
.backend-login [x-cloak] { display: none !important; }
.backend-login button, .backend-login input { font: inherit; }
.backend-login a { color: inherit; text-decoration: none; }
.backend-login button, .backend-login a, .backend-login input { -webkit-tap-highlight-color: transparent; }
.backend-login :focus-visible { outline: 3px solid #ba393a; outline-offset: 4px; }
.login-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px clamp(32px, 5vw, 88px) 28px;
    color: #fff7ed;
    background: #8c242a;
}
.login-brand::before {
    content: '';
    position: absolute;
    width: 580px;
    height: 580px;
    border: 1px solid #ffffff0a;
    border-radius: 50%;
    top: -340px;
    right: -260px;
    box-shadow: 0 0 0 60px #ffffff03, 0 0 0 120px #ffffff03;
    pointer-events: none;
}
.login-wordmark { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font-size: 23px; font-weight: 700; letter-spacing: -.6px; position: relative; }
.login-brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #f8e4ce66; border-radius: 12px; font-size: 17px; letter-spacing: -2px; }
.login-wordmark-caption { display: block; margin-top: 4px; font-size: 9px; font-weight: 500; letter-spacing: 2.5px; }
.login-brand-content { position: relative; margin: 56px 0 34px; max-width: 520px; }
.login-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 2.3px; }
.login-brand .login-eyebrow { color: #edd0bd; }
.login-brand h1 { margin: 20px 0; font-size: clamp(38px, 4.2vw, 64px); line-height: 1.12; font-weight: 500; letter-spacing: -2px; }
.login-brand h1 em { font-family: Georgia, serif; font-weight: 400; color: #f0d3af; }
.login-brand-content > p { max-width: 345px; color: #edcfcb; font-size: 15px; line-height: 1.8; }
.login-brand-art { position: relative; height: 260px; margin-top: 30px; display: flex; align-items: center; justify-content: center; }
.login-art-orbit { position: absolute; width: 250px; height: 250px; border: 1px solid #f8e4ce24; border-radius: 50%; }
.login-art-orbit::before { content: ''; position: absolute; inset: 20px; border: 1px dashed #f8e4ce26; border-radius: 50%; }
.login-art-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 32px 16px; background: #fff9ee; border-radius: 6px; transform: rotate(-8deg); box-shadow: 14px 18px 0 #63191f50; }
.login-art-card img { object-fit: contain; width: 82px; height: 132px; }
.login-art-card > span { color: #93544d; font-size: 9px; letter-spacing: 1px; }
.login-art-label { position: absolute; inset: 22px auto 16px 0; display: flex; flex-direction: column; justify-content: space-between; color: #e4b8ad; font-size: 9px; letter-spacing: 2px; writing-mode: vertical-rl; }
.login-art-stamp { position: absolute; left: calc(50% + 44px); bottom: 16px; display: grid; place-content: center; width: 77px; height: 77px; border: 1px solid #f4d4ae; border-radius: 50%; background: #8c242a; color: #f4d4ae; text-align: center; font-size: 9px; line-height: 1.7; letter-spacing: 1px; transform: rotate(13deg); }
.login-brand-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #e1b5b0; font-size: 10px; line-height: 1.5; }
.login-form-panel { display: flex; flex-direction: column; min-width: 0; padding: 42px clamp(24px, 2.5vw, 48px) 28px; background: #fbfaf8; }
.login-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #827a74; font-size: 10px; letter-spacing: 1.8px; }
.login-access-badge { display: inline-flex; gap: 7px; align-items: center; padding: 7px 10px; border: 1px solid #e6e2db; border-radius: 20px; color: #6b625c; font-size: 10px; letter-spacing: .2px; white-space: nowrap; }
.login-access-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #85735d; }
.login-form-content { width: 100%; max-width: 390px; margin: auto; padding: 64px 0; }
.login-heading-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; background: #f1e8e4; border: 1px solid #e8d7d0; border-radius: 14px; color: #8c242a; }
.login-form-content .login-eyebrow { color: #996b59; font-size: 9px; }
.login-form-content h2 { margin: 14px 0 10px; font-size: clamp(27px, 2.4vw, 34px); font-weight: 600; letter-spacing: -1px; line-height: 1.2; }
.login-intro { margin: 0 0 34px; color: #827a74; font-size: 14px; line-height: 1.7; }
.login-field { margin-bottom: 22px; }
.login-field label { display: block; font-size: 13px; font-weight: 600; }
.login-input { display: block; width: 100%; min-height: 50px; margin-top: 9px; padding: 13px 15px; border: 1px solid #ded9d2; border-radius: 8px; background: #fff; color: #292524; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.login-input::placeholder { color: #a39b94; opacity: 1; }
.login-input:focus { border-color: #a34445; outline: none; box-shadow: 0 0 0 3px #8c242a14; }
.login-input.is-invalid { border-color: #b42332; }
.login-label-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.login-label-row a { color: #8c242a; font-size: 12px; font-weight: 500; }
.login-label-row a:hover { text-decoration: underline; }
.login-password { position: relative; }
.login-password .login-input { padding-right: 52px; }
.login-password-toggle { position: absolute; top: 0; right: 4px; width: 44px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #827a74; cursor: pointer; }
.login-password-toggle:hover { color: #8c242a; }
.login-remember { display: inline-flex; align-items: center; gap: 9px; color: #6c625c; font-size: 12px; cursor: pointer; }
.login-remember input { margin: 0; width: 16px; height: 16px; accent-color: #8c242a; cursor: pointer; }
.login-submit { margin-top: 26px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 14px 18px; border: 1px solid #8c242a; border-radius: 8px; background: #8c242a; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.login-submit:hover { background: #741c22; }
.login-help { margin: 26px 0 0; padding-top: 24px; border-top: 1px solid #e9e4dd; text-align: center; color: #827a74; font-size: 12px; line-height: 1.7; }
.login-help .login-back-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #8c242a; font-weight: 500; }
.login-back-link:hover { text-decoration: underline; }
.login-form-footer { text-align: center; color: #938a82; font-size: 10px; line-height: 1.6; }
.login-error { margin: 8px 0 0; color: #b42332; font-size: 12px; line-height: 1.6; }
.login-session-status { padding: 12px 14px; margin-bottom: 22px; background: #edf5ee; border: 1px solid #c7ddca; color: #326440; border-radius: 8px; font-size: 13px; line-height: 1.6; }
@media (min-width: 1600px) { .login-brand-content { align-self: center; width: 100%; } }
@media (max-width: 900px) {
    .login-brand { padding: 32px; }
    .login-form-panel { padding: 32px 28px 24px; }
    .login-brand h1 { font-size: 42px; }
    .login-brand-footer > span:last-child { display: none; }
}
@media (max-width: 700px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-form-panel { padding: 24px; }
    .login-form-content { padding: 36px 0; }
    .login-heading-icon { margin-bottom: 22px; }
    .login-form-content h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { .backend-login * { transition: none !important; } }
