body.login-img { background: #f3f5fa !important; }
.auth-page { --auth-accent: var(--primary-bg-color, #6259ca); color: #24314c; max-width: 1220px; margin: 28px auto 40px; }
.auth-login-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 680px; background: #fff; border: 1px solid #e3e7f0; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 70px rgba(32, 45, 78, .09); }
.auth-story { background: linear-gradient(145deg, #192746, #343966 70%, #4a4382); color: #fff; padding: 36px; display: flex; flex-direction: column; }
.auth-story-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.auth-mark { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid #ffffff40; border-radius: 10px; }
.auth-story-copy { padding: 38px 0 24px; }
.auth-eyebrow { display: block; color: var(--auth-accent); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; margin-bottom: 12px; }
.auth-story .auth-eyebrow { color: #c4c5f4; }
.auth-story h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 650; letter-spacing: -1px; }
.auth-story-copy p { font-size: 13px; line-height: 1.8; max-width: 350px; color: #d4d9e7; margin-top: 16px; }
.auth-carousel { margin-top: auto; }
.auth-carousel .carousel-inner { border-radius: 14px; background: #fff; }
.auth-carousel .carousel-item img { width: 100%; height: 230px; object-fit: contain; }
.auth-carousel-controls { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 11px; color: #d4d9e7; }
.auth-carousel-controls button { width: 30px; height: 30px; margin-left: 5px; border: 1px solid #ffffff40; border-radius: 50%; background: transparent; color: #fff; }
.auth-story-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.auth-story-tags span { border: 1px solid #ffffff25; border-radius: 20px; padding: 6px 11px; font-size: 10px; color: #d4d9e7; }
.auth-login-form { display: flex; flex-direction: column; justify-content: center; padding: 48px 54px; }
.auth-brand { display: flex; align-items: center; gap: 13px; color: #24314c; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.auth-brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }
.auth-brand-icon { display: inline-grid; place-items: center; flex: 0 0 44px; height: 44px; color: var(--auth-accent); background: #efedf9; border-radius: 13px; font-size: 22px; }
.auth-welcome { margin: 40px 0 28px; }
.auth-welcome h1 { font-size: 31px; font-weight: 650; letter-spacing: -.7px; margin-bottom: 12px; color: #24314c; }
.auth-welcome p { color: #69758b; font-size: 13px; line-height: 1.8; margin: 0; }
.auth-field { margin-bottom: 22px; }
.auth-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .form-control { height: 52px; border: 1px solid #dce1eb; border-radius: 10px; padding: 12px 45px; color: #24314c; background: #fafbfe; }
.auth-input-icon { position: absolute; left: 16px; top: 18px; color: #78849c; }
.auth-page .login-visibility-toggle { position: absolute; right: 5px; top: 5px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #78849c; background: transparent; }
.auth-page .login-visibility-toggle:hover { color: var(--auth-accent); background: #efedf9; }
.auth-page .auth-submit { width: 100%; border-radius: 10px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.auth-form-note { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; line-height: 1.7; color: #7b869b; margin: 25px 0 0; }
.auth-form-note i { margin-top: 3px; }
.auth-loading { text-align: center; padding-top: 16px; font-size: 12px; color: var(--auth-accent); }
.auth-validation:empty { display: none; }
.auth-site-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 28px; }
.auth-logout { color: #65718a; border: 1px solid #dce1eb; background: #fff; border-radius: 10px; padding: 10px 16px; white-space: nowrap; }
.auth-logout i { margin-right: 7px; }
.auth-site-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 36px; align-items: start; }
.auth-profile { padding: 28px; background: #fff; border: 1px solid #e3e7f0; border-radius: 20px; box-shadow: 0 10px 30px #202d4e05; }
.auth-profile > .auth-eyebrow { margin-bottom: 24px; }
.auth-avatar { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; object-fit: cover; margin-bottom: 22px; }
.auth-avatar-placeholder { color: var(--auth-accent); background: #efedf9; font-size: 32px; }
.auth-profile-welcome { color: #7b869b; font-size: 12px; margin-bottom: 5px; }
.auth-profile h2 { font-size: 21px; line-height: 1.4; font-weight: 650; color: #24314c; overflow-wrap: anywhere; }
.auth-profile-role { display: inline-block; background: #efedf9; color: var(--auth-accent); border-radius: 20px; padding: 6px 10px; font-size: 11px; margin-top: 5px; }
.auth-profile-details { margin: 25px 0 0; border-top: 1px solid #edf0f5; }
.auth-profile-details > div { margin-top: 20px; }
.auth-profile-details dt { font-size: 11px; color: #7b869b; font-weight: 400; margin-bottom: 7px; }
.auth-profile-details dt i { margin-right: 6px; }
.auth-profile-details dd { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.auth-profile-note { color: #7b869b; font-size: 11px; line-height: 1.8; margin: 25px 0 0; padding-top: 20px; border-top: 1px solid #edf0f5; }
.auth-sites-heading { padding: 9px 0 22px; }
.auth-sites-heading h1 { font-size: 29px; line-height: 1.3; font-weight: 650; letter-spacing: -.6px; color: #24314c; max-width: 550px; }
.auth-sites-heading p { color: #7b869b; font-size: 13px; margin: 13px 0 0; }
.auth-site-toolbar { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin-bottom: 22px; }
.auth-site-search { position: relative; flex: 1; max-width: 430px; }
.auth-site-search i { position: absolute; top: 16px; left: 15px; color: #7b869b; }
.auth-site-search .form-control { border-radius: 10px; height: 46px; padding-left: 40px; border-color: #dce1eb; background: #fff; color: #24314c; }
#site-results-count { color: #7b869b; font-size: 11px; white-space: nowrap; }
.auth-sites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.auth-site-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; border: 1px solid #dfe4ee; border-radius: 16px; padding: 23px; background: #fff; color: #24314c; transition: border-color .15s, box-shadow .15s; }
.auth-site-card:hover { border-color: var(--auth-accent); box-shadow: 0 8px 24px #202d4e0d; }
.auth-site-card[hidden], .auth-empty[hidden] { display: none !important; }
.auth-site-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 10px; }
.auth-site-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--auth-accent); background: #efedf9; font-size: 20px; }
.auth-site-code { font-size: 10px; letter-spacing: .5px; color: #7b869b; overflow-wrap: anywhere; }
.auth-site-name { display: block; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.auth-site-type { display: block; font-size: 11px; color: var(--auth-accent); margin-top: 6px; }
.auth-site-address { display: block; color: #7b869b; font-size: 12px; line-height: 1.7; margin: 14px 0 20px; overflow-wrap: anywhere; }
.auth-site-enter { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0f5; padding-top: 14px; color: var(--auth-accent); font-size: 12px; font-weight: 600; }
.auth-empty { padding: 42px 20px; text-align: center; border: 1px dashed #dce1eb; border-radius: 16px; color: #7b869b; }
.auth-empty > i { font-size: 30px; color: var(--auth-accent); }
.auth-empty h2 { font-size: 18px; color: #24314c; margin-top: 16px; }
.auth-empty p { font-size: 12px; line-height: 1.7; }
.auth-page :is(a, button, input):focus-visible { outline: 3px solid var(--auth-accent); outline-offset: 3px; }
.auth-story button:focus-visible { outline-color: #fff; }
.auth-choice-modal .modal-content { border-radius: 18px; border: 0; }
.auth-choice-modal .modal-header { padding: 22px 24px; }
.auth-choice-modal .modal-body { padding: 26px; }
.auth-choice-modal .modal-footer { padding: 18px 24px; gap: 8px; }
.auth-choice-modal .btn { border-radius: 9px; }
@media (max-width: 991.98px) {
    .auth-page { margin: 20px auto 30px; }
    .auth-story { padding: 26px; }
    .auth-login-form { padding: 36px 30px; }
    .auth-site-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 22px; }
    .auth-profile { padding: 22px; }
    .auth-sites-grid { grid-template-columns: 1fr; }
    .auth-site-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
    .auth-site-search { max-width: none; }
}
@media (max-width: 767.98px) {
    .auth-login-shell { grid-template-columns: 1fr; min-height: 0; }
    .auth-story { display: none; }
    .auth-login-form { padding: 36px 26px; }
    .auth-welcome { margin-top: 32px; }
    .auth-site-layout { grid-template-columns: 1fr; }
    .auth-site-topbar { align-items: flex-start; }
    .auth-site-topbar .auth-brand { font-size: 15px; }
    .auth-logout { padding: 10px; font-size: 11px; }
    .auth-profile { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 18px; }
    .auth-profile > .auth-eyebrow, .auth-profile-note { display: none; }
    .auth-avatar { grid-column: 1; grid-row: 1 / 4; width: 60px; height: 60px; margin: 0; }
    .auth-profile-welcome, .auth-profile h2, .auth-profile-role { grid-column: 2; }
    .auth-profile h2 { font-size: 18px; }
    .auth-profile-role { justify-self: start; }
    .auth-profile-details { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
    .auth-sites-heading h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; animation: none !important; } }
