﻿:root {
    --brand-navy: #001733;
    --brand-primary: #0c4e78;
    --brand-primary-dark: #043155;
    --brand-cyan: #29909f;
    --brand-green: #3caa8f;
    --brand-soft: #eaf5f6;
    --ink: #142d3d;
    --muted: #647681;
    --line: #d8e3e7;
    --surface: #ffffff;
    --surface-soft: #f3f7f8;
    --sidebar: #001733;
    --success: #2d8a6f;
    --danger: #c0392b;
    --warning: #d98200;
    --info: #1f6feb;
    --disabled: #7a828c;
}

* {
    letter-spacing: 0;
}

body {
    background: var(--surface-soft);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    background: var(--sidebar);
    color: #fff;
    flex-direction: column;
    padding: 24px 18px;
}

.portal-offcanvas,
.portal-mobile-bar {
    background: var(--sidebar);
    color: #fff;
}

.sidebar-brand,
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-brand {
    padding: 0 8px 28px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 800;
}

.brand-mark.large {
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
}

.brand-logo {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-logo img {
    position: absolute;
    top: -12px;
    left: -13px;
    width: 132px;
    max-width: none;
    height: auto;
}

.brand-title {
    font-weight: 800;
}

.brand-subtitle,
.portal-kicker {
    color: #aeb6c1;
    font-size: .78rem;
    text-transform: uppercase;
    font-weight: 700;
}

.portal-kicker {
    color: var(--brand-primary);
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    color: #d8dee7;
    padding: 10px 12px;
    text-decoration: none;
    background: transparent;
    width: 100%;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.sidebar-link.active {
    box-shadow: inset 3px 0 0 var(--brand-cyan);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-logout {
    text-align: left;
}

.portal-main {
    flex: 1 0 auto;
    padding: 28px;
}

.portal-footer {
    flex: 0 0 auto;
    padding: 14px max(18px, calc((100vw - 1360px) / 2));
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    font-size: .78rem;
}

.portal-footer p {
    margin: 0;
}

.portal-footer strong {
    color: var(--ink);
    font-weight: 750;
}

.user-portal-shell {
    background: #f7f8fa;
}

.user-topbar {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
    align-items: center;
    min-height: 74px;
    padding: 12px max(24px, calc((100vw - 1360px) / 2));
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.user-brand,
.user-account,
.user-navigation,
.user-nav-link {
    display: flex;
    align-items: center;
}

button.user-nav-link {
    border: 0;
    background: transparent;
}

.user-brand {
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.user-brand:hover {
    color: var(--ink);
}

.user-brand .brand-logo {
    width: 38px;
    height: 38px;
}

.user-brand .brand-logo img {
    top: -10px;
    left: -11px;
    width: 110px;
}

.user-brand strong,
.user-brand small {
    display: block;
}

.user-brand strong {
    font-size: .94rem;
}

.user-brand small {
    margin-top: 1px;
    color: var(--muted);
    font-size: .74rem;
}

.user-navigation {
    gap: 6px;
    justify-content: center;
}

.user-nav-link {
    min-height: 38px;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
}

.user-nav-link:hover,
.user-nav-link.active {
    background: #f0f2f5;
    color: var(--ink);
}

.user-nav-link.active {
    box-shadow: inset 0 -2px 0 var(--brand-cyan);
}

.user-account {
    justify-content: flex-end;
    gap: 9px;
}

.language-switcher {
    display: grid;
    grid-template-columns: repeat(2, 34px);
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
}

.language-switcher button {
    width: 34px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
}

.language-switcher button:hover {
    color: var(--ink);
}

.language-switcher button.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(31, 36, 43, .12);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #202830;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.user-name {
    max-width: 180px;
    overflow: hidden;
    font-size: .85rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-logout {
    width: 34px;
    height: 34px;
}

.admin-access-link {
    display: inline-flex;
    width: auto;
    height: 36px;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 750;
}

.site-launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 200px));
    gap: 16px;
    justify-content: center;
}

.site-launcher-button {
    --launcher-accent: #0c4e78;
    --launcher-soft: #e8f0f5;
    position: relative;
    display: flex;
    aspect-ratio: 1;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--launcher-accent);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(31, 36, 43, .045);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.site-launcher-button:nth-child(4n + 2) {
    --launcher-accent: #29909f;
    --launcher-soft: #e9f6f7;
}

.site-launcher-button:nth-child(4n + 3) {
    --launcher-accent: #3caa8f;
    --launcher-soft: #eaf7f2;
}

.site-launcher-button:nth-child(4n + 4) {
    --launcher-accent: #28739d;
    --launcher-soft: #ebf3f8;
}

.site-launcher-button:hover {
    border-color: #c7ced6;
    color: var(--ink);
    box-shadow: 0 10px 26px rgba(31, 36, 43, .09);
    transform: translateY(-2px);
}

.site-launcher-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--launcher-soft);
    color: var(--launcher-accent);
}

.site-launcher-icon i {
    font-size: 1.7rem;
}

.site-launcher-button strong {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.site-category-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.application-launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 190px));
    gap: 14px;
    justify-content: center;
}

.application-launcher-tile {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 5px 18px rgba(31, 36, 43, .045);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.application-launcher-tile:hover {
    border-color: #c7ced6;
    box-shadow: 0 10px 26px rgba(31, 36, 43, .08);
    transform: translateY(-2px);
}

.application-launcher-target {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-rows: 76px minmax(2.2rem, auto) minmax(24px, auto);
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: inherit;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.application-launcher-target:hover {
    color: var(--ink);
}

.application-launcher-target h2 {
    align-self: center;
    margin: 0;
    font-size: .92rem;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.application-launcher-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-primary);
    overflow: hidden;
    flex: 0 0 auto;
}

.application-launcher-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.application-launcher-icon i {
    font-size: 2rem;
}

.application-launcher-target .status-badge {
    max-width: 100%;
    min-height: 24px;
    justify-content: center;
    padding: 3px 8px;
    font-size: .7rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.application-launcher-tile.is-unavailable .application-launcher-icon {
    filter: grayscale(.35);
    opacity: .8;
}

.application-launcher-tile.is-unavailable {
    cursor: not-allowed;
}

.application-launcher-tile.is-unavailable:hover {
    border-color: var(--line);
    box-shadow: 0 5px 18px rgba(31, 36, 43, .045);
    transform: none;
}

.user-portal-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 28px 56px;
}

.admin-portal-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 28px 56px;
}

.admin-page-heading {
    margin-bottom: 24px;
    text-align: center;
}

.admin-manage-menu {
    min-width: 210px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(31, 36, 43, .12);
}

.admin-manage-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border-radius: 6px;
    font-size: .86rem;
}

.portal-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.portal-page-title {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    margin: 0;
    font-weight: 800;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.metric-card,
.filter-band,
.table-shell,
.form-shell,
.detail-shell,
.empty-state,
.history-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(31, 36, 43, .06);
}

.metric-card {
    min-height: 118px;
    padding: 18px;
    display: grid;
    align-content: space-between;
    border-top: 4px solid var(--ink);
}

.metric-card span {
    color: var(--muted);
    font-weight: 700;
    font-size: .86rem;
}

.metric-card strong {
    font-size: 2rem;
    line-height: 1;
}

.compact-summary-grid {
    gap: 10px;
}

.compact-summary-grid .metric-card {
    min-height: 76px;
    padding: 12px 14px;
    border-top-width: 3px;
}

.compact-summary-grid .metric-card span {
    font-size: .76rem;
}

.compact-summary-grid .metric-card strong {
    font-size: 1.45rem;
}

.metric-online {
    border-top-color: var(--success);
}

.metric-offline {
    border-top-color: var(--danger);
}

.metric-maintenance {
    border-top-color: var(--warning);
}

.metric-development {
    border-top-color: var(--info);
}

.filter-band,
.form-shell,
.detail-shell,
.history-panel {
    padding: 20px;
}

.site-editor-form {
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
}

.options-workspace {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(31, 36, 43, .06);
}

.options-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.options-tab {
    display: grid;
    min-width: 0;
    min-height: 62px;
    grid-template-columns: 22px minmax(0, auto) 24px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.options-tab:last-child {
    border-right: 0;
}

.options-tab:hover {
    background: var(--surface);
    color: var(--ink);
}

.options-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--brand-cyan);
}

.options-tab > i {
    color: var(--brand-primary);
    font-size: 1.05rem;
}

.options-tab > span:not(.option-total) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.options-panels {
    min-height: 390px;
}

.option-group {
    min-width: 0;
    padding: 24px;
}

.option-group:focus {
    outline: 0;
}

.option-total,
.option-usage {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding-inline: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.option-add-form {
    display: grid;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}

.option-add-form-category {
    max-width: none;
    grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1fr) auto;
}

.option-add-form .form-control,
.option-add-form .icon-code-control,
.option-add-form .icon-code-preview,
.option-form-actions > .icon-btn {
    min-height: 38px;
}

.option-form-actions,
.option-row-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.option-form-editing {
    padding: 10px;
    border: 1px solid var(--brand-cyan);
    border-radius: 7px;
    background: var(--brand-soft);
}

.option-list {
    display: grid;
    max-height: 470px;
    gap: 2px;
    overflow-y: auto;
    padding-right: 4px;
    border-top: 1px solid var(--line);
    scrollbar-width: thin;
}

.option-row {
    display: grid;
    min-height: 46px;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    padding: 7px 5px;
    border-bottom: 1px solid var(--line);
}

.option-row-editing {
    background: var(--brand-soft);
}

.option-row:last-child {
    border-bottom: 0;
}

.option-row-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-primary);
}

.option-row strong {
    min-width: 0;
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.option-row form {
    margin: 0;
}

.option-row .icon-btn {
    width: 32px;
    height: 32px;
}

.option-row .icon-btn:disabled {
    border-color: transparent;
    opacity: .35;
}

.option-empty {
    padding: 24px 8px;
    color: var(--muted);
    text-align: center;
    font-size: .84rem;
}

.icon-code-control {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: stretch;
}

.icon-code-control .form-control {
    border-radius: 0 6px 6px 0;
}

.icon-code-preview,
.admin-site-icon {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--brand-soft);
    color: var(--brand-primary);
}

.icon-code-preview {
    min-height: 38px;
    border-right: 0;
    border-radius: 6px 0 0 6px;
}

.icon-code-preview i {
    font-size: 1.15rem;
}

.admin-site-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
}

.admin-site-icon i {
    font-size: 1rem;
}

.compact-filter-band {
    padding: 14px;
}

.compact-filter-band .form-label {
    margin-bottom: 4px;
    font-size: .78rem;
    font-weight: 750;
    color: var(--muted);
}

.directory-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.directory-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 850;
}

.directory-heading p {
    margin: 4px 0 0;
    color: var(--muted);
}

.directory-kicker {
    color: var(--brand-primary) !important;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.directory-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.directory-heading-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.directory-heading-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid #b9dadd;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-primary);
    flex: 0 0 auto;
}

.directory-heading-mark i {
    font-size: 1.35rem;
}

.user-directory-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    align-items: end;
    gap: 36px;
    padding: 10px 0 34px;
}

.user-directory-intro h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 850;
}

.user-directory-intro p:not(.directory-kicker) {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
}

.directory-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 6px 6px 15px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 18px rgba(31, 36, 43, .05);
}

.directory-search > i {
    color: var(--muted);
}

.directory-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    font-size: .94rem;
}

.directory-search input::placeholder {
    color: #88919b;
}

.category-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.category-section-heading h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 850;
}

.category-section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .82rem;
}

.user-all-sites-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-primary-dark);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.user-all-sites-link:hover {
    color: var(--brand-primary);
}

.category-folder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.category-folder {
    --folder-fill: #0c4e78;
    --folder-symbol-color: #fff;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 12px;
    min-height: 120px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(31, 36, 43, .045);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.category-folder:nth-child(4n + 2) {
    --folder-fill: #29909f;
    --folder-symbol-color: #fff;
}

.category-folder:nth-child(4n + 3) {
    --folder-fill: #3caa8f;
    --folder-symbol-color: #fff;
}

.category-folder:nth-child(4n + 4) {
    --folder-fill: #28739d;
    --folder-symbol-color: #fff;
}

.category-folder:hover {
    border-color: #c8cfd7;
    background: #fafbfc;
    color: inherit;
    box-shadow: 0 8px 22px rgba(31, 36, 43, .08);
    transform: translateY(-1px);
}

.folder-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--folder-fill);
    color: var(--folder-symbol-color);
}

.category-mark-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.category-folder-copy {
    min-width: 0;
}

.category-folder-copy h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-folder-copy p {
    display: -webkit-box;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.folder-count {
    align-self: start;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f4f6f8;
    color: var(--ink);
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.folder-arrow {
    color: var(--muted);
    font-size: .85rem;
    transition: transform .16s ease;
}

.category-folder:hover .folder-arrow {
    transform: translateX(2px);
}

.public-filter-shell {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(31, 36, 43, .04);
}

.public-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(170px, 220px) minmax(160px, 200px) auto;
    align-items: center;
    gap: 10px;
}

.public-filter-form.category-filter-form {
    grid-template-columns: minmax(240px, 1fr) minmax(160px, 200px) auto;
}

.public-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
}

.public-search-field:focus-within {
    border-color: #a7afb8;
    box-shadow: 0 0 0 3px rgba(38, 39, 43, .07);
}

.public-search-field i {
    color: var(--muted);
}

.public-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
}

.public-filter-form > .form-select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
}

.public-filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.application-card {
    min-height: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.application-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.application-logo {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #f0f2f5;
    display: grid;
    place-items: center;
    color: var(--brand-primary);
    overflow: hidden;
    flex: 0 0 auto;
}

.application-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-logo i {
    font-size: 1.7rem;
}

.application-card h2 {
    font-size: 1.12rem;
    margin: 0;
    font-weight: 800;
}

.application-card p {
    color: var(--muted);
    margin: 0;
    min-height: 48px;
}

.application-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.application-meta div {
    min-width: 0;
}

.application-meta dt {
    color: var(--muted);
    font-size: .74rem;
    text-transform: uppercase;
    font-weight: 800;
}

.application-meta dd {
    margin: 2px 0 0;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.application-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-amcor {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-primary-dark);
    --bs-btn-hover-border-color: var(--brand-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.icon-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.badge-status-online {
    background: var(--success);
}

.badge-status-offline {
    background: var(--danger);
}

.badge-status-maintenance {
    background: var(--warning);
}

.badge-status-development {
    background: var(--info);
}

.badge-status-disabled {
    background: var(--disabled);
}

.badge-status-custom {
    background: var(--brand-primary);
}

.table-shell {
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.directory-toolbar,
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.directory-toolbar {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.site-list {
    display: grid;
}

.site-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, .45fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.site-row:last-child {
    border-bottom: 0;
}

.site-row:hover {
    background: #fafbfc;
}

.site-identity,
.app-overview-main,
.site-title-line,
.site-subline,
.site-row-actions,
.detail-actions {
    display: flex;
    align-items: center;
}

.site-identity {
    min-width: 0;
    gap: 12px;
}

.site-logo-sm {
    width: 42px;
    height: 42px;
}

.site-logo-sm i {
    font-size: 1.25rem;
}

.site-title-block {
    min-width: 0;
}

.site-title-line {
    gap: 10px;
    min-width: 0;
}

.site-title-line h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-subline {
    gap: 8px;
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
    min-width: 0;
}

.site-subline span:not(.badge) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-subline span:not(.badge) + span:not(.badge)::before {
    content: "/";
    margin-right: 8px;
    color: #a8b0ba;
}

.site-operations {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px;
}

.site-operations span,
.parameter-grid dt {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.site-operations strong {
    display: block;
    margin-top: 2px;
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.site-row-actions {
    justify-content: flex-end;
    gap: 8px;
}

.public-site-directory {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.public-site-directory .site-list {
    gap: 10px;
}

.public-site-directory .site-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(31, 36, 43, .035);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.public-site-directory .site-row:hover {
    border-color: #c8cfd7;
    box-shadow: 0 8px 22px rgba(31, 36, 43, .07);
    transform: translateY(-1px);
}

.public-site-directory .site-row:nth-child(4n + 2) .application-logo {
    background: #edf5fa;
    color: #2f6e9e;
}

.public-site-directory .site-row:nth-child(4n + 3) .application-logo {
    background: #eef7f1;
    color: #2e7750;
}

.public-site-directory .site-row:nth-child(4n + 4) .application-logo {
    background: #faeef0;
    color: #a63b49;
}

.user-site-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 92px;
    padding: 14px 16px;
}

.user-site-description {
    max-width: 760px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.user-site-actions {
    min-width: 116px;
}

.compact-icon-btn {
    width: 34px;
    height: 34px;
}

.app-overview-shell {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.app-overview-main {
    min-width: 0;
    gap: 14px;
}

.detail-logo {
    width: 64px;
    height: 64px;
}

.app-overview-text {
    min-width: 0;
}

.app-overview-text h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 850;
}

.app-overview-text p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 900px;
}

.detail-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.parameter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.parameter-grid div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbfc;
}

.parameter-grid dd {
    margin: 4px 0 0;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.parameter-grid .parameter-wide {
    grid-column: 1 / -1;
}

.compact-history-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-history-grid .history-state strong {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.compact-table > :not(caption) > * > * {
    padding: .55rem .75rem;
}

.compact-empty-state {
    min-height: 180px;
    padding: 28px;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
}

.empty-state {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px;
}

.empty-state i {
    color: var(--brand-primary);
    font-size: 2.5rem;
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(31, 36, 43, .92), rgba(31, 36, 43, .72)),
        linear-gradient(90deg, #f8f9fa 0 20%, #e6e9ed 20% 21%, #f8f9fa 21% 60%, #e6e9ed 60% 61%, #f8f9fa 61%);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.login-brand {
    margin-bottom: 28px;
}

.login-brand h1 {
    font-size: 1.35rem;
    font-weight: 850;
    margin: 0;
}

.portal-toast .toast-body.success {
    border-left: 4px solid var(--success);
}

.portal-toast .toast-body.warning {
    border-left: 4px solid var(--warning);
}

.portal-toast .toast-body.error {
    border-left: 4px solid var(--danger);
}

.role-checks {
    display: grid;
    gap: 8px;
}

.history-state-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.history-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.history-state span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.history-state strong {
    font-size: 1.4rem;
}

.screenshot-preview {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

@media (max-width: 1199.98px) {
    .admin-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .admin-topbar .user-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .summary-grid,
    .application-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-row {
        grid-template-columns: 1fr auto;
    }

    .site-operations {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .parameter-grid,
    .compact-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-folder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-filter-form {
        grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(150px, 180px) auto;
    }

    .public-filter-form.category-filter-form {
        grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) auto;
    }
}

@media (max-width: 767.98px) {
    .portal-main {
        padding: 18px;
    }

    .user-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 18px;
    }

    .user-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

    .user-portal-main {
        padding: 30px 18px 44px;
    }

    .admin-portal-main {
        padding: 24px 18px 44px;
    }

    .option-group {
        padding: 16px;
    }

    .options-tab {
        min-height: 56px;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 6px;
        padding: 8px;
        font-size: .78rem;
    }

    .options-tab .option-total {
        display: none;
    }

    .option-add-form-category {
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .option-add-form-category > :first-child {
        grid-column: 1 / -1;
    }

    .portal-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .directory-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-category-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-directory-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 26px;
    }

    .user-directory-intro h1 {
        font-size: 1.7rem;
    }

    .directory-search {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .public-filter-form {
        grid-template-columns: minmax(0, 1fr) minmax(145px, 180px) auto;
    }

    .public-filter-form:not(.category-filter-form) .public-search-field {
        grid-column: 1 / -1;
    }

    .category-folder-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid,
    .application-grid,
    .history-state-grid {
        grid-template-columns: 1fr;
    }

    .application-meta {
        grid-template-columns: 1fr;
    }

    .app-overview-shell,
    .site-row {
        grid-template-columns: 1fr;
    }

    .user-site-description,
    .user-site-actions {
        grid-column: auto;
        grid-row: auto;
    }

    .app-overview-shell {
        flex-direction: column;
    }

    .site-operations,
    .parameter-grid,
    .compact-history-grid {
        grid-template-columns: 1fr;
    }

    .site-row-actions,
    .detail-actions {
        justify-content: flex-start;
    }

    .site-row-actions .btn-amcor,
    .site-row-actions .btn-secondary {
        flex: 1 1 auto;
    }

    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 575.98px) {
    .user-topbar {
        padding-inline: 12px;
    }

    .user-brand > span:last-child {
        display: none;
    }

    .user-account {
        gap: 6px;
    }

    .admin-access-link {
        width: 36px;
        padding: 0;
        justify-content: center;
    }

    .admin-access-link span {
        display: none;
    }

    .site-launcher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .site-launcher-button {
        padding: 15px;
    }

    .site-launcher-icon {
        width: 46px;
        height: 46px;
    }

    .application-launcher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .application-launcher-tile {
        width: auto;
    }

    .application-launcher-target {
        grid-template-rows: 56px minmax(2rem, auto) minmax(24px, auto);
        gap: 5px;
        padding: 5px;
    }

    .application-launcher-icon {
        width: 56px;
        height: 56px;
    }

    .application-launcher-target h2 {
        font-size: .84rem;
    }

    .public-filter-form,
    .public-filter-form.category-filter-form {
        grid-template-columns: 1fr;
    }

    .public-filter-form .public-search-field,
    .public-filter-form:not(.category-filter-form) .public-search-field {
        grid-column: auto;
    }

    .public-filter-actions .btn {
        flex: 1 1 auto;
    }
}

html[data-theme="dark"] {
    --brand-primary: #8ec6bb;
    --brand-primary-dark: #6eb892;
    --brand-cyan: #29909f;
    --brand-green: #6eb892;
    --brand-soft: #18313a;
    --ink: #edf0f3;
    --muted: #aab2bc;
    --line: #3a424b;
    --surface: #1d2329;
    --surface-soft: #13181d;
    --sidebar: #12171c;
    --success: #35a76a;
    --danger: #dc5260;
    --warning: #d99a34;
    --info: #4c8bd8;
    --disabled: #78818b;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--surface-soft);
    --bs-secondary-color: var(--muted);
    color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .user-portal-shell {
    background: var(--surface-soft);
    color: var(--ink);
}

html[data-theme="dark"] .user-nav-link:hover,
html[data-theme="dark"] .user-nav-link.active,
html[data-theme="dark"] .application-logo,
html[data-theme="dark"] .application-launcher-icon {
    background: #293039;
}

html[data-theme="dark"] .site-launcher-button {
    --launcher-soft: #152b39;
}

html[data-theme="dark"] .site-launcher-button:nth-child(4n + 2) {
    --launcher-soft: #143137;
}

html[data-theme="dark"] .site-launcher-button:nth-child(4n + 3) {
    --launcher-soft: #15342c;
}

html[data-theme="dark"] .site-launcher-button:nth-child(4n + 4) {
    --launcher-soft: #172f3f;
}

html[data-theme="dark"] .directory-heading-mark {
    border-color: #315d6a;
    background: #18313a;
}

html[data-theme="dark"] .btn-amcor {
    --bs-btn-bg: #136998;
    --bs-btn-border-color: #136998;
    --bs-btn-hover-bg: #0c4e78;
    --bs-btn-hover-border-color: #0c4e78;
}

html[data-theme="dark"] .site-row:hover,
html[data-theme="dark"] .category-folder:hover,
html[data-theme="dark"] .parameter-grid div {
    background: #242b32;
}

html[data-theme="dark"] .public-search-field,
html[data-theme="dark"] .directory-search,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text {
    border-color: var(--line);
    background-color: #181e23;
    color: var(--ink);
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .public-search-field input::placeholder,
html[data-theme="dark"] .directory-search input::placeholder {
    color: #89939d;
}

html[data-theme="dark"] .public-search-field input,
html[data-theme="dark"] .directory-search input {
    background: transparent;
    color: var(--ink);
}

html[data-theme="dark"] .table {
    --bs-table-color: var(--ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--line);
    --bs-table-striped-color: var(--ink);
    --bs-table-hover-color: var(--ink);
    --bs-table-hover-bg: #252c33;
}

html[data-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #d2d8de;
    --bs-btn-border-color: #626c76;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4a535d;
    --bs-btn-hover-border-color: #66717c;
}

html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .toast-header {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--ink);
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    background: #2a323a;
    color: #fff;
}

html[data-theme="dark"] .dropdown-divider,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: var(--line);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(180%);
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-text {
    color: var(--muted) !important;
}

html[data-theme="dark"] .language-switcher button.active {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.brand-logo img.brand-logo-custom,
.user-brand .brand-logo img.brand-logo-custom {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.branding-editor {
    margin-top: 24px;
}

.branding-editor-heading {
    align-items: flex-start;
    margin-bottom: 18px;
}

.branding-editor-heading p {
    font-size: .84rem;
}

.branding-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .4fr);
    gap: 24px;
    align-items: start;
}

.branding-editor-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.branding-preview {
    display: grid;
    gap: 14px;
    min-height: 150px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 7px;
    background: var(--surface-soft);
}

.branding-preview-label {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.branding-preview-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.branding-preview-brand strong,
.branding-preview-brand small {
    display: block;
}

.branding-preview-brand strong {
    font-size: .94rem;
}

.branding-preview-brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .74rem;
}

.branding-preview-logo {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    flex: 0 0 auto;
}

.branding-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.branding-preview-favicon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
}

.branding-preview-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .branding-editor-grid {
        grid-template-columns: 1fr;
    }

    .branding-editor-actions .btn {
        width: 100%;
    }
}

.visitor-panel {
    overflow: hidden;
}

.visitor-toolbar {
    align-items: flex-start;
}

.visitor-controls,
.visitor-date-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.visitor-online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .84rem;
    white-space: nowrap;
}

.visitor-online-indicator i {
    color: var(--success);
    font-size: .55rem;
}

.visitor-date-form input {
    min-width: 150px;
}

.visitor-summary {
    display: flex;
    gap: 28px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.visitor-summary > div {
    display: grid;
    gap: 2px;
}

.visitor-summary strong {
    font-size: 1.2rem;
}

.visitor-summary span {
    color: var(--muted);
    font-size: .76rem;
}

.visitor-user-agent {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.visitor-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
}

@media (max-width: 767.98px) {
    .visitor-toolbar,
    .visitor-controls,
    .visitor-date-form {
        align-items: stretch;
        flex-direction: column;
    }

    .visitor-controls,
    .visitor-date-form {
        width: 100%;
    }

    .visitor-date-form input,
    .visitor-date-form button {
        width: 100%;
    }
}

.login-page {
    background: var(--surface-soft);
}

.login-panel {
    border: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(20, 45, 61, .12);
}

.login-brand {
    color: var(--ink);
    text-decoration: none;
}

.login-logo {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-brand-copy {
    display: grid;
    gap: 2px;
}

.login-brand-copy strong {
    font-size: 1.05rem;
}

.login-brand-copy small {
    color: var(--muted);
    font-size: .8rem;
}

.login-heading {
    margin-bottom: 24px;
}

.login-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: 1.7rem;
    font-weight: 800;
}

.login-heading p:last-child {
    margin: 6px 0 0;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field {
    display: grid;
    gap: 7px;
}

.login-field label {
    color: var(--ink);
    font-size: .86rem;
    font-weight: 750;
}

.login-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.login-alert,
.login-field-error {
    color: var(--danger);
    font-size: .82rem;
}

.login-alert {
    padding: 10px 12px;
    border: 1px solid rgba(192, 57, 43, .24);
    border-radius: 6px;
    background: rgba(192, 57, 43, .07);
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 22px;
    color: var(--muted);
    font-size: .86rem;
    text-decoration: none;
}

.login-back-link:hover {
    color: var(--brand-primary);
}
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #edf3f5;
}

.login-shell {
    width: min(1120px, calc(100% - 48px));
    min-height: 0;
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(400px, .72fr);
    align-items: stretch;
    margin: 0 auto;
    padding: 56px 0;
}

.login-showcase {
    position: relative;
    display: flex;
    min-height: 560px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px;
    border-top: 4px solid var(--brand-cyan);
    border-radius: 12px 0 0 12px;
    background: var(--brand-navy);
    color: #fff;
}

.login-showcase::before,
.login-showcase::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .16);
    transform: rotate(45deg);
}

.login-showcase::before {
    right: -54px;
    bottom: 90px;
    width: 220px;
    height: 220px;
}

.login-showcase::after {
    right: 30px;
    bottom: 12px;
    width: 120px;
    height: 120px;
    border-color: rgba(41, 144, 159, .45);
}

.login-showcase-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.login-showcase-brand:hover {
    color: #fff;
}

.login-showcase .login-logo {
    width: 58px;
    height: 58px;
    border: 0;
    background: #fff;
}

.login-brand-copy {
    display: grid;
    gap: 3px;
}

.login-brand-copy strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.login-brand-copy small {
    color: #a9c1cc;
    font-size: .8rem;
}

.login-showcase-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin: auto 0;
}

.login-eyebrow {
    margin: 0 0 12px;
    color: #70c4c8;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-showcase-content h1 {
    margin: 0;
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.08;
}

.login-showcase-content > p:last-child {
    max-width: 330px;
    margin: 20px 0 0;
    color: #c7d6dc;
    font-size: 1rem;
    line-height: 1.7;
}

.login-showcase-status {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #d8e8ec;
    font-size: .82rem;
}

.login-showcase-status i {
    color: #6ec2a4;
    font-size: 1rem;
}

.login-panel {
    display: flex;
    width: auto;
    min-height: 560px;
    flex-direction: column;
    justify-content: center;
    padding: 52px 56px;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(20, 45, 61, .12);
}

.login-panel-heading {
    margin-bottom: 30px;
}

.login-panel-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-primary);
    font-size: 1.2rem;
}

.login-panel-heading .portal-kicker {
    margin-bottom: 7px;
}

.login-panel-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
}

.login-panel-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

.login-form {
    gap: 18px;
}

.login-field {
    gap: 8px;
}

.login-field label {
    font-size: .82rem;
    font-weight: 750;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.login-input-wrap .form-control {
    min-height: 50px;
    padding-left: 42px;
    border-radius: 6px;
}

.login-input-wrap .form-control:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 .2rem rgba(41, 144, 159, .13);
}

.login-input-wrap:focus-within > i {
    color: var(--brand-primary);
}

.login-input-wrap.has-error > i {
    color: var(--danger);
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.login-alert i {
    margin-top: 2px;
}

.login-submit {
    min-height: 50px;
    margin-top: 6px;
    border-radius: 6px;
    font-weight: 750;
}

.login-assurance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .78rem;
}

.login-assurance i {
    color: var(--brand-green);
    font-size: .9rem;
}

.login-footer {
    width: 100%;
}

@media (max-width: 850px) {
    .login-shell {
        width: min(640px, calc(100% - 32px));
        grid-template-columns: 1fr;
        padding: 32px 0 24px;
    }

    .login-showcase {
        min-height: 250px;
        padding: 32px;
        border-radius: 12px 12px 0 0;
    }

    .login-showcase-content {
        margin: 48px 0 24px;
    }

    .login-showcase-content h1 {
        font-size: 2.35rem;
    }

    .login-panel {
        min-height: 0;
        padding: 38px 36px;
        border-left: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 575.98px) {
    .login-shell {
        width: 100%;
        padding: 16px 12px 20px;
    }

    .login-showcase {
        min-height: 225px;
        padding: 24px;
    }

    .login-showcase .login-logo {
        width: 50px;
        height: 50px;
    }

    .login-brand-copy strong {
        font-size: 1rem;
    }

    .login-showcase-content {
        margin-top: 42px;
    }

    .login-showcase-content h1 {
        font-size: 2rem;
    }

    .login-showcase-content > p:last-child {
        margin-top: 12px;
        font-size: .9rem;
    }

    .login-panel {
        padding: 32px 22px;
    }

    .portal-footer.login-footer {
        padding-right: 12px;
        padding-left: 12px;
        line-height: 1.55;
    }
}
.login-showcase {
    isolation: isolate;
}

.login-showcase-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-art-frame,
.login-art-line {
    position: absolute;
    display: block;
}

.login-art-frame {
    border: 1px solid rgba(255, 255, 255, .14);
    transform: rotate(18deg);
}

.login-art-frame-one {
    top: 20%;
    right: -86px;
    width: 270px;
    height: 270px;
    animation: login-frame-drift 11s ease-in-out infinite;
}

.login-art-frame-two {
    right: 20px;
    bottom: 10%;
    width: 142px;
    height: 142px;
    border-color: rgba(41, 144, 159, .45);
    animation: login-frame-drift-reverse 9s ease-in-out infinite;
}

.login-art-line {
    top: -18%;
    width: 1px;
    height: 150%;
    background: rgba(112, 196, 200, .36);
    transform: rotate(28deg);
    transform-origin: center;
}

.login-art-line-one {
    right: 34%;
    animation: login-line-sweep 10s ease-in-out infinite;
}

.login-art-line-two {
    right: 13%;
    opacity: .45;
    animation: login-line-sweep 13s 2.2s ease-in-out infinite;
}

.login-showcase-brand {
    transition: transform .25s ease, color .25s ease;
    animation: login-rise-in .7s .08s both;
}

.login-showcase-brand:hover {
    transform: translateY(-2px);
}

.login-showcase .login-logo {
    transition: transform .3s ease, box-shadow .3s ease;
}

.login-showcase-brand:hover .login-logo {
    transform: rotate(-2deg) scale(1.04);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.login-showcase-content {
    animation: login-rise-in .75s .18s both;
}

.login-showcase-status {
    animation: login-rise-in .7s .3s both;
}

.login-showcase-status i {
    animation: login-status-pulse 2.6s ease-in-out infinite;
}

.login-panel {
    position: relative;
    z-index: 1;
    animation: login-panel-in .75s .12s both;
}

.login-panel-icon {
    transition: transform .3s ease, background-color .3s ease;
}

.login-panel:hover .login-panel-icon {
    background: #dff0f1;
    transform: translateY(-2px);
}

.login-form .login-field {
    animation: login-rise-in .55s .28s both;
}

.login-form .login-field + .login-field {
    animation-delay: .4s;
}

.login-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
    animation: login-rise-in .55s .5s both;
}

.login-submit::before {
    position: absolute;
    top: -40%;
    left: -50%;
    width: 28%;
    height: 180%;
    content: "";
    background: rgba(255, 255, 255, .22);
    transform: skewX(-18deg);
    z-index: -1;
}

.login-submit:hover {
    box-shadow: 0 10px 22px rgba(12, 78, 120, .22);
    transform: translateY(-2px);
}

.login-submit:hover::before {
    animation: login-button-glint .7s ease;
}

.login-submit i,
.login-submit span {
    position: relative;
    z-index: 1;
}

.login-input-wrap {
    transition: transform .2s ease;
}

.login-input-wrap:focus-within {
    transform: translateY(-1px);
}

.login-input-wrap .form-control {
    padding-right: 48px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login-input-wrap .form-control:focus {
    background: #fcffff;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-size: .95rem;
    transform: translateY(-50%);
    transition: color .2s ease, background-color .2s ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    background: var(--brand-soft);
    color: var(--brand-primary);
    outline: 0;
}

@keyframes login-rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-panel-in {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes login-frame-drift {
    0%, 100% {
        transform: rotate(18deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(23deg) translate3d(-14px, 10px, 0);
    }
}

@keyframes login-frame-drift-reverse {
    0%, 100% {
        transform: rotate(18deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(12deg) translate3d(12px, -8px, 0);
    }
}

@keyframes login-line-sweep {
    0%, 100% {
        opacity: 0;
        transform: translate3d(-80px, -18px, 0) rotate(28deg);
    }

    18%, 78% {
        opacity: 1;
    }

    52% {
        transform: translate3d(54px, 22px, 0) rotate(28deg);
    }
}

@keyframes login-button-glint {
    from {
        left: -50%;
    }

    to {
        left: 135%;
    }
}

@keyframes login-status-pulse {
    0%, 100% {
        opacity: .72;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@media (max-width: 850px) {
    .login-art-frame-one {
        top: 6%;
        right: -118px;
    }

    .login-art-frame-two {
        right: 12px;
        bottom: -34px;
    }

    .login-art-line-one {
        right: 28%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-showcase-brand,
    .login-showcase-content,
    .login-showcase-status,
    .login-panel,
    .login-form .login-field,
    .login-submit,
    .login-art-frame,
    .login-art-line,
    .login-showcase-status i {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .login-showcase-brand,
    .login-showcase .login-logo,
    .login-panel-icon,
    .login-submit,
    .login-input-wrap,
    .login-password-toggle {
        transition: none;
    }
}
.login-page {
    display: grid;
    height: 100dvh;
    min-height: 100svh;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
}

.login-shell {
    width: min(1320px, calc(100% - 48px));
    height: 100%;
    min-height: 0;
    padding: 28px 0 24px;
}

.login-showcase,
.login-panel {
    height: 100%;
    min-height: 0;
}

.login-showcase {
    box-shadow: 0 18px 44px rgba(0, 23, 51, .18);
}

.login-panel {
    box-shadow: 14px 18px 44px rgba(20, 45, 61, .12);
}

.login-footer {
    position: relative;
    z-index: 2;
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-height: 680px) and (min-width: 851px) {
    .login-shell {
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .login-showcase {
        padding: 32px 38px;
    }

    .login-panel {
        padding: 30px 42px;
    }

    .login-panel-heading {
        margin-bottom: 18px;
    }

    .login-panel-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .login-panel-heading h2 {
        font-size: 1.7rem;
    }

    .login-panel-heading > p:last-child {
        margin-top: 8px;
        font-size: .84rem;
    }

    .login-form {
        gap: 12px;
    }

    .login-field {
        gap: 5px;
    }

    .login-input-wrap .form-control {
        min-height: 44px;
    }

    .login-submit {
        min-height: 44px;
        margin-top: 2px;
    }

    .login-assurance {
        margin-top: 16px;
        padding-top: 12px;
    }
}

@media (max-width: 850px) {
    .login-page {
        display: flex;
        height: auto;
        min-height: 100svh;
        overflow: auto;
    }

    .login-shell {
        height: auto;
        min-height: 0;
    }

    .login-showcase,
    .login-panel {
        height: auto;
    }

    .login-showcase {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page {
        scroll-behavior: auto;
    }
}
.login-page {
    display: block;
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
    background: #fff;
}

.login-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1.58fr) minmax(430px, 1fr);
    padding: 0;
}

.login-showcase {
    min-height: 0;
    padding: 72px 7.4%;
    border: 0;
    border-radius: 0;
    background: #001733;
    box-shadow: none;
}

.login-showcase::before,
.login-showcase::after {
    content: none;
}

.login-showcase-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-showcase-art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(0, 23, 51, .08);
}

.login-showcase-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: .98;
    transform: scale(1.04);
    animation: login-reference-art 18s ease-in-out infinite alternate;
}

.login-showcase-brand {
    gap: 18px;
}

.login-showcase .login-logo {
    width: 102px;
    height: 84px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.login-brand-copy strong {
    font-size: 1.55rem;
    line-height: 1.1;
}

.login-brand-copy small {
    color: #c5d7e0;
    font-size: 1.05rem;
}

.login-showcase-content {
    max-width: 720px;
    margin: auto 0;
}

.login-eyebrow {
    margin-bottom: 22px;
    color: #4fc4ca;
    font-size: .92rem;
}

.login-showcase-content h1 {
    display: grid;
    gap: 2px;
    margin: 0;
    font-size: 4.1rem;
    line-height: 1.03;
    letter-spacing: 0;
}

.login-showcase-content h1 span,
.login-showcase-content h1 strong {
    display: block;
}

.login-showcase-content h1 strong {
    color: #4dd0d8;
    font-weight: 800;
}

.login-showcase-content > p:last-child {
    max-width: 560px;
    margin-top: 28px;
    color: #d4e1e7;
    font-size: 1.28rem;
    line-height: 1.55;
}

.login-showcase-status {
    color: #d6e5ea;
    font-size: .95rem;
}

.login-showcase-status i {
    color: #56c8c0;
    font-size: 1.25rem;
}

.login-panel {
    min-height: 0;
    padding: 42px 10% 32px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    justify-content: flex-start;
    overflow: hidden;
}

.login-language-bar {
    display: flex;
    justify-content: flex-end;
}

.login-language-form {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--ink);
}

.login-language-form select {
    min-width: 58px;
    appearance: none;
    border: 0;
    padding: 4px 22px 4px 4px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: .96rem;
    font-weight: 800;
}

.login-language-form select:focus {
    outline: 2px solid rgba(41, 144, 159, .28);
    outline-offset: 3px;
}

.login-language-form i {
    position: absolute;
    right: 2px;
    pointer-events: none;
    font-size: .9rem;
}

.login-panel-heading {
    margin-top: 72px;
    margin-bottom: 36px;
}

.login-panel-icon {
    display: none;
}

.login-panel-heading .portal-kicker {
    margin-bottom: 18px;
    color: #29909f;
    font-size: .9rem;
}

.login-panel-heading h2 {
    max-width: 480px;
    font-size: 3.1rem;
    line-height: 1.05;
}

.login-panel-heading > p:last-child {
    margin-top: 18px;
    color: #71828e;
    font-size: 1.12rem;
}

.login-form {
    gap: 24px;
}

.login-field {
    gap: 10px;
}

.login-field label {
    color: #112c43;
    font-size: 1rem;
    font-weight: 800;
}

.login-input-wrap > i {
    left: 20px;
    color: #82919b;
    font-size: 1.1rem;
}

.login-input-wrap .form-control {
    min-height: 64px;
    padding-left: 54px;
    border-color: #d6e0e5;
    border-radius: 9px;
    font-size: 1rem;
}

.login-input-wrap .form-control:focus {
    border-color: #29909f;
    box-shadow: 0 0 0 .2rem rgba(41, 144, 159, .12);
}

.login-password-toggle {
    right: 14px;
    width: 38px;
    height: 38px;
}

.login-submit {
    min-height: 62px;
    margin-top: 8px;
    border-radius: 8px;
    background: #12638a;
    font-size: 1rem;
    font-weight: 800;
}

.login-submit:hover {
    background: #0c4e78;
}

.login-assurance {
    justify-content: center;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #dce4e8;
    color: #7b8b95;
    font-size: .84rem;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-top: auto;
    padding: 24px 0 0;
    border-top: 1px solid #dce4e8;
    background: transparent;
    color: #7b8b95;
    text-align: left;
    font-size: .76rem;
}

.login-footer span:last-child {
    text-align: right;
}

.login-footer strong {
    color: #18344b;
}

@keyframes login-reference-art {
    0% {
        transform: scale(1.04) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.09) translate3d(-1.2%, 1%, 0);
    }
}

@media (max-height: 700px) and (min-width: 851px) {
    .login-showcase {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .login-showcase .login-logo {
        width: 78px;
        height: 64px;
    }

    .login-brand-copy strong {
        font-size: 1.2rem;
    }

    .login-brand-copy small {
        font-size: .86rem;
    }

    .login-showcase-content h1 {
        font-size: 3rem;
    }

    .login-showcase-content > p:last-child {
        margin-top: 18px;
        font-size: 1rem;
    }

    .login-panel {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .login-panel-heading {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .login-panel-heading .portal-kicker {
        margin-bottom: 10px;
    }

    .login-panel-heading h2 {
        font-size: 2.2rem;
    }

    .login-panel-heading > p:last-child {
        margin-top: 10px;
        font-size: .95rem;
    }

    .login-form {
        gap: 14px;
    }

    .login-field {
        gap: 6px;
    }

    .login-input-wrap .form-control {
        min-height: 50px;
    }

    .login-submit {
        min-height: 52px;
        margin-top: 2px;
    }

    .login-assurance {
        margin-top: 16px;
        padding-top: 12px;
    }

    .login-footer {
        padding-top: 14px;
    }
}

@media (max-width: 850px) {
    .login-page {
        display: flex;
        height: auto;
        min-height: 100svh;
        overflow: auto;
    }

    .login-shell {
        height: auto;
        min-height: 100svh;
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: 430px;
        padding: 40px 28px;
    }

    .login-showcase .login-logo {
        width: 78px;
        height: 64px;
    }

    .login-brand-copy strong {
        font-size: 1.15rem;
    }

    .login-brand-copy small {
        font-size: .88rem;
    }

    .login-showcase-content h1 {
        font-size: 2.65rem;
    }

    .login-showcase-content > p:last-child {
        font-size: 1rem;
    }

    .login-panel {
        height: auto;
        min-height: 650px;
        padding: 30px 28px;
    }

    .login-panel-heading {
        margin-top: 42px;
        margin-bottom: 28px;
    }

    .login-panel-heading h2 {
        font-size: 2.35rem;
    }

    .login-footer {
        margin-top: 44px;
    }
}

@media (max-width: 480px) {
    .login-showcase {
        min-height: 380px;
        padding: 28px 20px;
    }

    .login-showcase-content h1 {
        font-size: 2.2rem;
    }

    .login-showcase-content > p:last-child {
        font-size: .92rem;
    }

    .login-panel {
        min-height: 620px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .login-panel-heading h2 {
        font-size: 2rem;
    }

    .login-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .login-footer span:last-child {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-showcase-art img {
        animation: none;
        transform: none;
    }
}

.login-showcase-art img {
    object-position: left center;
}

@media (max-width: 850px) {
    .login-showcase-art img {
        object-position: center;
    }
}

.login-page {
    width: 100%;
    margin: 0;
}

.login-shell {
    width: 100%;
    margin: 0;
    grid-template-columns: 60% 40%;
}

.login-showcase,
.login-panel {
    width: 100%;
}

.login-showcase .login-logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.login-panel-content {
    width: min(420px, 100%);
    margin: auto;
}

.login-panel-content .login-panel-heading {
    margin-top: 0;
}

.login-panel-content .login-form,
.login-panel-content .login-assurance {
    width: 100%;
}

.login-footer {
    margin-top: 0;
}

@media (max-width: 850px) {
    .login-shell {
        width: 100%;
        min-height: 100svh;
        grid-template-columns: 1fr;
    }

    .login-panel-content {
        width: min(420px, 100%);
        margin: 0 auto;
    }

    .login-footer {
        margin-top: 44px;
    }
}

body.login-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
}

body.login-page .login-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    grid-template-columns: 60vw 40vw;
}

@media (max-width: 850px) {
    body.login-page {
        position: static;
        width: 100%;
        height: auto;
        min-height: 100svh;
        overflow: auto;
    }

    body.login-page .login-shell {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 100svh;
        grid-template-columns: 1fr;
    }
}

/* Full-page login. Keep these rules outside the mobile media queries above. */
body.login-light-page {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
    margin: 0;
    overflow: auto;
    background: #f7fbfc;
    color: #12324d;
}

body.login-light-page .login-shell {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    isolation: isolate;
    background: #f7fbfc;
}

body.login-light-page .login-showcase {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

body.login-light-page .login-showcase::after {
    position: absolute;
    inset: 73px 0 auto;
    width: 100%;
    height: 1px;
    border: 0;
    background: #d5e1e7;
    transform: none;
    content: "";
}

body.login-light-page .login-showcase-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translate3d(var(--login-pointer-x, 0px), var(--login-pointer-y, 0px), 0) scale(1.025);
    transition: transform 900ms ease-out;
}

body.login-light-page .login-showcase-art::after {
    content: none;
}

body.login-light-page .login-showcase-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: none;
    animation: login-light-art 26s ease-in-out infinite alternate;
}

body.login-light-page .login-showcase-brand {
    position: absolute;
    top: 18px;
    left: max(24px, 4.5%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    max-width: calc(100% - 240px);
    color: #15354f;
    text-decoration: none;
    pointer-events: auto;
    /* Blend the GIF's white pixels into the page without flattening its animation. */
    mix-blend-mode: multiply;
}

body.login-light-page .login-logo,
body.login-light-page .login-showcase-brand:hover .login-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 134px;
    height: 40px;
    padding: 0 24px 0 0;
    border: 0;
    border-right: 1px solid #cbd9e1;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

body.login-light-page .login-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.login-light-page .login-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.login-light-page .login-brand-copy strong {
    color: #12324d;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

body.login-light-page .login-brand-copy small {
    color: #58738a;
    font-size: 14px;
    line-height: 1.2;
}

body.login-light-page .login-showcase-content,
body.login-light-page .login-showcase-status,
body.login-light-page .login-panel-icon {
    display: none;
}

body.login-light-page .login-panel {
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding: 112px 24px 84px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
    pointer-events: none;
}

body.login-light-page .login-panel > * {
    pointer-events: auto;
}

body.login-light-page .login-language-bar {
    position: absolute;
    top: 18px;
    right: max(24px, 4.5%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0;
    padding: 0;
}

body.login-light-page .login-language-picker {
    position: relative;
    margin: 0;
}

body.login-light-page .login-language-picker summary,
body.login-light-page .login-motion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(129, 163, 180, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.65);
    color: #17364f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.login-light-page .login-language-picker summary { width: 100px; }
body.login-light-page .login-language-picker summary::-webkit-details-marker { display: none; }
body.login-light-page .login-language-picker summary::marker { content: ""; }
body.login-light-page .login-language-picker summary > i:first-child { font-size: 17px; color: #39738a; }
body.login-light-page .login-language-picker summary > i:last-child { font-size: 11px; transition: transform 160ms ease; }
body.login-light-page .login-language-picker[open] summary > i:last-child { transform: rotate(180deg); }

body.login-light-page .login-motion-toggle {
    width: 40px;
    padding: 0;
    font-size: 22px;
}

body.login-light-page .login-motion-toggle[hidden] { display: none; }

body.login-light-page .login-language-picker summary:hover,
body.login-light-page .login-language-picker[open] summary,
body.login-light-page .login-motion-toggle:hover {
    border-color: #72a9bb;
    background: #fff;
    box-shadow: 0 3px 12px rgba(17, 67, 88, 0.07);
}

body.login-light-page .login-language-picker summary:focus-visible,
body.login-light-page .login-language-menu button:focus-visible,
body.login-light-page .login-motion-toggle:focus-visible {
    outline: 2px solid #168da6;
    outline-offset: 3px;
}

body.login-light-page .login-language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    gap: 4px;
    width: 204px;
    margin: 0;
    padding: 6px;
    border: 1px solid #d5e1e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18, 50, 77, 0.13);
    animation: login-language-reveal 160ms ease-out;
}

body.login-light-page .login-language-menu button {
    display: grid;
    grid-template-columns: 30px 1fr 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #304f63;
    font-size: 14px;
    text-align: left;
    transition: background 160ms ease;
}

body.login-light-page .login-language-menu button:hover { background: #f2f7f8; }
body.login-light-page .login-language-menu button[aria-pressed="true"] { background: #e9f5f4; color: #096b76; font-weight: 700; }
body.login-light-page .login-language-menu button > i { visibility: hidden; }
body.login-light-page .login-language-menu button[aria-pressed="true"] > i { visibility: visible; }
body.login-light-page .login-language-code { font-size: 11px; font-weight: 800; color: #617d8a; }

@keyframes login-language-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

body.login-light-page .login-panel-content {
    position: relative;
    inset: auto;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    width: min(520px, 100%);
    margin: auto;
    transform: none;
}

body.login-light-page .login-panel-heading {
    width: 100%;
    margin: 0 0 42px;
    text-align: center;
}

body.login-light-page .login-panel-heading .portal-kicker {
    margin: 0 0 20px;
    color: #008ca5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

body.login-light-page .login-panel-heading h2 {
    max-width: none;
    margin: 0;
    color: #102f4a;
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
    overflow-wrap: anywhere;
}

body.login-light-page .login-panel-heading h2 + p {
    margin: 14px 0 0;
    color: #6a8296;
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

body.login-light-page .login-form {
    display: flex;
    flex-direction: column;
    gap: 23px;
    width: 100%;
    margin: 0;
}

body.login-light-page .login-field {
    display: block;
    width: 100%;
    margin: 0;
}

body.login-light-page .login-field label {
    display: block;
    margin: 0 0 9px;
    color: #12324d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

body.login-light-page .login-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    height: 63px;
    padding: 0 17px;
    border: 1px solid #d0dce3;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.login-light-page .login-input-wrap:focus-within {
    border-color: #27a9be;
    box-shadow: 0 0 0 3px rgba(39, 169, 190, 0.13);
    transform: none;
}

body.login-light-page .login-input-wrap > i {
    position: static;
    flex: 0 0 25px;
    color: #6f8598;
    font-size: 19px;
    transform: none;
}

body.login-light-page .login-input-wrap .form-control {
    flex: 1;
    width: 0;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #12324d;
    font-size: 16px;
}

body.login-light-page .login-password-toggle {
    position: static;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6f8598;
    font-size: 18px;
    transform: none;
}

body.login-light-page .login-password-toggle:focus-visible {
    outline: 2px solid #27a9be;
}

body.login-light-page .login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    width: 100%;
    min-height: 0;
    height: 64px;
    margin: 0;
    border: 1px solid #0b4e76;
    border-radius: 6px;
    background: #0c5682;
    box-shadow: none;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    transition: background 160ms ease, box-shadow 160ms ease;
}

body.login-light-page .login-submit:hover {
    background: #0a486d;
    box-shadow: 0 8px 18px rgba(13, 80, 120, 0.17);
}

body.login-light-page .login-submit:focus-visible {
    outline: 3px solid #27a9be;
    outline-offset: 2px;
}

body.login-light-page .login-submit span { order: 1; }
body.login-light-page .login-submit i { order: 2; font-size: 23px; }

body.login-light-page .login-assurance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    margin: 25px 0 0;
    padding: 0;
    border: 0;
    color: #627b90;
}

body.login-light-page .login-access {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #627b90;
    font-size: 14px;
    line-height: 1.4;
}

body.login-light-page .login-access i { color: #09a4b4; font-size: 23px; }

body.login-light-page .login-footer {
    position: absolute;
    inset: auto 0 0;
    z-index: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    width: 100%;
    min-height: 60px;
    height: auto;
    margin: 0;
    padding: 16px max(24px, 4.5%);
    border-top: 1px solid #d5e1e7;
    background: rgba(255, 255, 255, 0.42);
    color: #5f778b;
    font-size: 14px;
}

body.login-light-page .login-footer span { overflow-wrap: anywhere; }
body.login-light-page .login-footer strong { color: #183650; font-weight: 700; }

@keyframes login-light-art {
    from { transform: scale(1.025) translate3d(-0.5%, 0.3%, 0); }
    to { transform: scale(1.055) translate3d(0.6%, -0.5%, 0); }
}

body.login-light-page[data-motion-paused="true"] .login-showcase-art img {
    animation-play-state: paused;
}

@media (max-height: 760px) {
    body.login-light-page .login-panel { padding-top: 96px; padding-bottom: 80px; }
    body.login-light-page .login-panel-heading { margin-bottom: 27px; }
    body.login-light-page .login-panel-heading .portal-kicker { margin-bottom: 12px; }
    body.login-light-page .login-panel-heading h2 { font-size: 52px; }
    body.login-light-page .login-panel-heading h2 + p { margin-top: 9px; font-size: 18px; }
    body.login-light-page .login-form { gap: 15px; }
    body.login-light-page .login-input-wrap,
    body.login-light-page .login-submit { height: 56px; }
    body.login-light-page .login-assurance { margin-top: 17px; }
}

@media (max-width: 650px) {
    body.login-light-page .login-showcase-brand { top: 16px; left: 20px; gap: 12px; max-width: calc(100% - 166px); }
    body.login-light-page .login-logo,
    body.login-light-page .login-showcase-brand:hover .login-logo { width: 72px; height: 40px; padding-right: 12px; }
    body.login-light-page .login-brand-copy strong { font-size: 12px; }
    body.login-light-page .login-brand-copy small { font-size: 11px; }
    body.login-light-page .login-language-bar { top: 16px; right: 20px; }
    body.login-light-page .login-language-bar { gap: 6px; }
    body.login-light-page .login-language-picker summary { width: 72px; gap: 6px; padding: 0 8px; }
    body.login-light-page .login-language-picker summary > i:first-child { display: none; }
    body.login-light-page .login-motion-toggle { width: 34px; }
    body.login-light-page .login-panel { padding: 100px 20px 110px; }
    body.login-light-page .login-panel-heading { margin-bottom: 28px; }
    body.login-light-page .login-panel-heading .portal-kicker { margin-bottom: 15px; font-size: 11px; }
    body.login-light-page .login-panel-heading h2 { font-size: 42px; }
    body.login-light-page .login-panel-heading h2 + p { font-size: 17px; }
    body.login-light-page .login-form { gap: 18px; }
    body.login-light-page .login-input-wrap,
    body.login-light-page .login-submit { height: 54px; }
    body.login-light-page .login-assurance { margin-top: 20px; }
    body.login-light-page .login-footer { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 20px; font-size: 12px; }
    body.login-light-page .login-footer span:last-child { align-self: flex-end; text-align: right; }
}

@media (max-width: 390px) {
    body.login-light-page .login-showcase-brand { left: 16px; gap: 8px; max-width: calc(100% - 148px); }
    body.login-light-page .login-language-bar { right: 16px; }
    body.login-light-page .login-logo,
    body.login-light-page .login-showcase-brand:hover .login-logo { width: 50px; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    body.login-light-page .login-showcase-art { transform: none; transition: none; }
    body.login-light-page .login-showcase-art img,
    body.login-light-page .login-language-menu { animation: none; }
    body.login-light-page .login-motion-toggle { display: none; }
}
