:root {
    --account-panel-width: 42rem;
}

/* Premium ICAAS staff login gateway */
.staff-login-body {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 122, 24, 0.2), transparent 27rem),
        radial-gradient(circle at 84% 12%, rgba(0, 119, 190, 0.18), transparent 31rem),
        linear-gradient(135deg, #eef7fc 0%, #f9fbfd 46%, #eaf4f0 100%);
    color: #142033;
    min-height: 100vh;
}

[data-bs-theme="dark"] .staff-login-body {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 122, 24, 0.16), transparent 27rem),
        radial-gradient(circle at 84% 12%, rgba(0, 119, 190, 0.22), transparent 31rem),
        linear-gradient(135deg, #101419 0%, #171c22 48%, #0e1d27 100%);
    color: #f8fafc;
}

.staff-login-shell {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    max-width: 78rem;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
    width: 100%;
}

.staff-login-gateway {
    align-self: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(5, 92, 171, 0.16);
    border-radius: 0.9rem;
    box-shadow: 0 2rem 4.5rem rgba(15, 23, 42, 0.16);
    display: grid;
    grid-template-columns: minmax(22rem, 1.08fr) minmax(22rem, 0.92fr);
    min-height: min(44rem, calc(100vh - 7rem));
    overflow: hidden;
    position: relative;
}

[data-bs-theme="dark"] .staff-login-gateway {
    background: rgba(24, 29, 36, 0.96);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 2rem 4.5rem rgba(0, 0, 0, 0.38);
}

.staff-login-gateway::before {
    background: linear-gradient(90deg, #005cab, #0077be 72%, #f47b20);
    content: "";
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
    z-index: 2;
}

.staff-login-brand {
    background:
        linear-gradient(135deg, rgba(0, 92, 171, 0.96), rgba(0, 69, 130, 0.94) 52%, rgba(0, 123, 132, 0.9)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 90px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(2rem, 4vw, 4rem);
    position: relative;
}

.staff-login-brand::after {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    content: "";
    height: 24rem;
    opacity: 0.42;
    position: absolute;
    right: -9rem;
    top: -8rem;
    width: 24rem;
}

.staff-login-brand-top {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.staff-login-logo {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.65rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.14);
    max-width: 14rem;
    padding: 0.55rem;
    width: min(52%, 14rem);
}

.staff-login-system-badge {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 0.55rem 0.8rem;
}

.staff-login-copy {
    margin: auto 0;
    max-width: 39rem;
    padding: clamp(2rem, 6vw, 5rem) 0;
    position: relative;
    z-index: 1;
}

.staff-login-eyebrow {
    color: #ffca9d;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.staff-login-copy h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.15rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
}

.staff-login-copy p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.75;
    margin: 1.25rem 0 0;
    max-width: 35rem;
}

.staff-login-assurance {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.staff-login-assurance > div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.55rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem;
}

.staff-login-assurance strong {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
}

.staff-login-assurance span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    line-height: 1.45;
}

.staff-login-panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(2rem, 5vw, 4.5rem);
}

[data-bs-theme="dark"] .staff-login-panel {
    background: #181d24;
}

.staff-login-panel-heading {
    margin-bottom: 1.7rem;
}

.staff-login-panel-heading .staff-login-eyebrow {
    color: #0077be;
    margin-bottom: 0.5rem;
}

.staff-login-panel h2 {
    color: #142033;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

[data-bs-theme="dark"] .staff-login-panel h2 {
    color: #f8fafc;
}

.staff-login-panel-heading p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0.75rem 0 0;
}

[data-bs-theme="dark"] .staff-login-panel-heading p {
    color: #cbd5e1;
}

.staff-login-field {
    margin-bottom: 1.05rem;
}

.staff-login-field .form-label {
    color: #142033;
    font-size: 0.86rem;
    font-weight: 850;
    margin-bottom: 0.4rem;
}

[data-bs-theme="dark"] .staff-login-field .form-label {
    color: #f8fafc;
}

.staff-login-field .form-control {
    background: #f8fbff;
    border: 1px solid #c7d7e8;
    border-radius: 0.55rem;
    color: #142033;
    font-size: 0.98rem;
    font-weight: 650;
    min-height: 3.35rem;
}

.staff-login-field .form-control:focus {
    background: #fff;
    border-color: #0077be;
    box-shadow: 0 0 0 0.22rem rgba(0, 119, 190, 0.16);
}

[data-bs-theme="dark"] .staff-login-field .form-control {
    background: #101419;
    border-color: #334155;
    color: #f8fafc;
}

.staff-login-field .account-field-help {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    margin-top: 0.42rem;
}

[data-bs-theme="dark"] .staff-login-field .account-field-help {
    color: #cbd5e1;
}

.staff-login-actions {
    margin-top: 0.5rem;
}

.staff-login-actions .account-primary-action {
    background: linear-gradient(135deg, #005cab, #0077be);
    border: 0;
    border-radius: 0.55rem;
    box-shadow: 0 0.9rem 1.8rem rgba(0, 92, 171, 0.22);
    color: #fff;
    font-weight: 900;
    min-height: 3.35rem;
    width: 100%;
}

.staff-login-actions .account-primary-action:hover,
.staff-login-actions .account-primary-action:focus {
    background: linear-gradient(135deg, #004d91, #006ba8);
}

.staff-login-message {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 0.55rem;
    color: #9f1239 !important;
    display: block;
    font-size: 0.86rem;
    font-weight: 750;
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
}

.staff-login-support {
    background: #f8fbff;
    border: 1px solid #d7e5f4;
    border-left: 4px solid #f47b20;
    border-radius: 0.55rem;
    color: #64748b;
    display: grid;
    font-size: 0.78rem;
    gap: 0.25rem;
    margin-top: 1.35rem;
    padding: 0.85rem 0.95rem;
}

[data-bs-theme="dark"] .staff-login-support {
    background: #101419;
    border-color: #334155;
    color: #cbd5e1;
}

.staff-login-support strong {
    color: #142033;
    font-weight: 900;
}

[data-bs-theme="dark"] .staff-login-support strong {
    color: #f8fafc;
}

.staff-login-footer {
    align-items: center;
    align-self: end;
    color: #64748b;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 1rem;
    justify-content: space-between;
    padding: 0 0.25rem;
}

[data-bs-theme="dark"] .staff-login-footer {
    color: #cbd5e1;
}

@media (max-width: 991.98px) {
    .staff-login-shell {
        min-height: 100vh;
        padding: 0;
    }

    .staff-login-gateway {
        border-radius: 0;
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .staff-login-brand {
        gap: 1.5rem;
        min-height: 27rem;
        padding: 2rem 1.25rem;
    }

    .staff-login-copy {
        padding: 1.5rem 0;
    }

    .staff-login-copy h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .staff-login-panel {
        padding: 2rem 1.25rem;
    }

    .staff-login-footer {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .staff-login-brand {
        min-height: 24rem;
    }

    .staff-login-logo {
        width: 11rem;
    }

    .staff-login-assurance {
        grid-template-columns: 1fr;
    }

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

.account-portal-body {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--icaas-primary) 7%, var(--icaas-page-bg)) 0%,
            var(--icaas-page-bg) 46%,
            color-mix(in srgb, var(--icaas-accent) 5%, var(--icaas-page-bg)) 100%);
    color: var(--icaas-text);
    min-height: 100vh;
}

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

.account-portal-header {
    background: var(--icaas-topbar-bg);
    border-bottom: 1px solid var(--icaas-border);
    box-shadow: 0 0.35rem 1.25rem color-mix(in srgb, #0f172a 10%, transparent);
    position: relative;
    z-index: 20;
}

.account-portal-header::before {
    background: linear-gradient(90deg, var(--icaas-primary-strong), var(--icaas-primary) 72%, var(--icaas-accent));
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.account-portal-header-inner {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    min-height: 5.25rem;
    padding-bottom: 0.65rem;
    padding-top: 0.8rem;
}

.account-portal-brand {
    align-items: center;
    color: var(--icaas-text) !important;
    display: inline-flex;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none !important;
}

.account-portal-logo {
    background: #fff;
    border: 1px solid var(--icaas-border);
    border-radius: 0.35rem;
    height: 3.45rem;
    object-fit: contain;
    padding: 0.2rem 0.35rem;
    width: 7.75rem;
}

.account-portal-brand-copy {
    border-left: 1px solid var(--icaas-border);
    display: grid;
    line-height: 1.15;
    padding-left: 0.9rem;
}

.account-portal-brand-copy span {
    color: var(--icaas-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.account-portal-brand-copy strong {
    color: var(--icaas-primary-strong);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.account-portal-links {
    align-items: center;
    display: flex;
    gap: 0.35rem;
}

.account-font-selector {
    align-items: center;
    border-right: 1px solid var(--icaas-border);
    display: inline-flex;
    gap: 0.4rem;
    margin-right: 0.35rem;
    padding-right: 0.7rem;
}

.account-font-selector > span {
    color: var(--icaas-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.account-font-selector select {
    background: var(--icaas-surface-alt);
    border: 1px solid var(--icaas-border);
    border-radius: 0.35rem;
    color: var(--icaas-text);
    font-size: 0.75rem;
    font-weight: 700;
    min-height: 2.25rem;
    padding: 0.35rem 1.8rem 0.35rem 0.55rem;
}

.account-portal-links a,
.account-portal-signout {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    color: var(--icaas-text) !important;
    font-size: 0.78rem;
    font-weight: 750;
    min-height: 2.35rem;
    padding: 0.52rem 0.72rem;
    text-decoration: none !important;
    white-space: nowrap;
}

.account-portal-links a:hover,
.account-portal-links a:focus,
.account-portal-signout:hover,
.account-portal-signout:focus {
    background: var(--icaas-surface-alt);
    border-color: var(--icaas-border);
    color: var(--icaas-primary) !important;
}

.account-portal-links .primary {
    background: var(--icaas-primary);
    border-color: var(--icaas-primary);
    color: #fff !important;
}

.account-portal-main {
    display: grid;
    flex: 1 1 auto;
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    place-items: center;
    width: 100%;
}

.account-portal-main > .container {
    width: 100%;
}

.account-page {
    margin: 0 auto;
    max-width: var(--account-panel-width);
    width: 100%;
}

.account-page.wide {
    --account-panel-width: 68rem;
}

.account-login-page {
    --account-panel-width: 72rem;
}

.account-login-layout {
    background: var(--icaas-primary-strong);
    border: 1px solid color-mix(in srgb, var(--icaas-primary) 55%, var(--icaas-border));
    border-radius: 0.55rem;
    box-shadow: 0 1.5rem 3.5rem color-mix(in srgb, #0f172a 22%, transparent);
    display: grid;
    grid-template-columns: minmax(20rem, 1.05fr) minmax(24rem, 0.95fr);
    min-height: 36rem;
    overflow: hidden;
}

.account-login-welcome {
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--icaas-primary) 88%, var(--icaas-primary-strong)),
            var(--icaas-primary-strong));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
}

.account-login-welcome::after {
    background: var(--icaas-accent);
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
}

.account-login-logo {
    background: #fff;
    border-radius: 0.35rem;
    height: auto;
    max-width: 13rem;
    padding: 0.4rem;
    width: 52%;
}

.account-login-welcome-copy {
    margin: auto 0;
    max-width: 31rem;
    padding: 2.5rem 0;
}

.account-login-eyebrow {
    color: color-mix(in srgb, var(--icaas-accent) 72%, #fff);
    display: block;
    font-size: 0.72rem;
    font-weight: 850;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.account-login-welcome h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 850;
    line-height: 1.06;
    margin: 0;
    max-width: 12ch;
}

.account-login-welcome-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 1.25rem 0 0;
    max-width: 42rem;
}

.account-login-assurance {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
}

.account-login-assurance > span:last-child {
    display: grid;
    gap: 0.15rem;
}

.account-login-assurance strong {
    color: #fff;
    font-size: 0.78rem;
}

.account-login-assurance small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
}

.account-login-shield {
    border: 2px solid #fff;
    border-radius: 0.65rem 0.65rem 0.85rem 0.85rem;
    display: block;
    flex: 0 0 1.65rem;
    height: 1.9rem;
    position: relative;
    width: 1.65rem;
}

.account-login-shield::after {
    background: var(--icaas-accent);
    border-radius: 50%;
    content: "";
    height: 0.42rem;
    left: 50%;
    position: absolute;
    top: 0.55rem;
    transform: translateX(-50%);
    width: 0.42rem;
}

.account-login-form {
    align-content: center;
    background: var(--icaas-surface-bg);
    color: var(--icaas-text);
    display: grid;
    min-width: 0;
    padding: clamp(2rem, 5vw, 4rem);
}

.account-login-heading {
    margin-bottom: 1.75rem;
}

.account-login-heading h2 {
    color: var(--icaas-text);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 850;
    margin: 0;
}

.account-login-heading p {
    color: var(--icaas-muted);
    font-size: 0.84rem;
    margin: 0.5rem 0 0;
}

.account-login-field {
    margin-bottom: 1.1rem;
    position: relative;
}

.account-login-field .form-label {
    color: var(--icaas-text) !important;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.account-login-field .form-control {
    min-height: 3.15rem;
}

.account-login-options {
    align-items: center;
    display: flex;
    font-size: 0.78rem;
    gap: 1rem;
    justify-content: space-between;
    margin: 0.4rem 0 1.25rem;
}

.account-login-options > div {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.account-login-options .form-check-input {
    margin: 0;
}

.account-login-forgot {
    color: var(--icaas-primary) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.account-login-actions .btn {
    min-height: 3.15rem;
    width: 100%;
}

.account-login-form .account-registration-prompt {
    margin: 2rem 0 0;
    padding: 1rem 0 0;
}

.account-panel {
    background: var(--icaas-surface-bg);
    border: 1px solid var(--icaas-border);
    border-radius: 0.45rem;
    box-shadow: 0 1.25rem 3rem color-mix(in srgb, #0f172a 13%, transparent);
    overflow: hidden;
}

.account-panel-header {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--icaas-primary) 10%, var(--icaas-surface-bg)),
        var(--icaas-surface-bg));
    border-bottom: 1px solid var(--icaas-border);
    padding: 1.5rem clamp(1.25rem, 4vw, 2.25rem);
}

.account-panel-kicker {
    color: var(--icaas-primary);
    display: block;
    font-size: 0.7rem;
    font-weight: 850;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.account-panel-header h1,
.account-panel-header h2 {
    color: var(--icaas-text);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 800;
    margin: 0;
}

.account-panel-header p {
    color: var(--icaas-muted);
    font-size: 0.88rem;
    margin: 0.55rem 0 0;
}

.account-panel-body {
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

.account-panel-body .form-group.row {
    align-items: start;
    margin-bottom: 1.1rem;
}

.account-panel-body .form-control,
.account-panel-body .form-select,
.account-panel-body .custom-select {
    min-height: 2.8rem;
    width: 100%;
}

.account-panel-body textarea.form-control {
    min-height: 7rem;
}

.account-panel-body .col-form-label,
.account-panel-body .standardLabel {
    color: var(--icaas-text) !important;
    font-size: 0.82rem;
    font-weight: 750;
}

.account-field-help {
    color: var(--icaas-muted) !important;
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.account-password-field {
    align-items: stretch;
    display: flex;
    position: relative;
}

.account-password-field .form-control {
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
    min-width: 0;
}

.account-password-toggle {
    background: var(--icaas-surface-alt);
    border: 1px solid var(--icaas-border);
    border-left: 0;
    border-radius: 0 0.35rem 0.35rem 0;
    color: var(--icaas-primary);
    flex: 0 0 4.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    min-height: 2.8rem;
    padding: 0 0.65rem;
}

.account-password-toggle:hover,
.account-password-toggle:focus-visible {
    background: color-mix(in srgb, var(--icaas-primary) 10%, var(--icaas-surface-bg));
    outline: 0;
}

.account-caps-lock {
    color: #b54708;
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    margin-top: 0.35rem;
}

.account-caps-lock[hidden] {
    display: none;
}

.account-actions {
    align-items: center;
    border-top: 1px solid var(--icaas-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.account-actions .btn {
    min-height: 2.65rem;
    min-width: 8rem;
}

.account-actions .account-primary-action {
    flex: 1 1 12rem;
}

.account-secondary-link {
    color: var(--icaas-primary) !important;
    font-size: 0.82rem;
    font-weight: 750;
    margin-left: auto;
}

.account-registration-prompt {
    align-items: center;
    background: var(--icaas-surface-alt);
    border-top: 1px solid var(--icaas-border);
    color: var(--icaas-muted);
    display: flex;
    font-size: 0.78rem;
    gap: 0.35rem;
    justify-content: center;
    margin: 1.5rem -2.25rem -2.25rem;
    padding: 1rem;
}

.account-registration-prompt a {
    color: var(--icaas-primary) !important;
    font-weight: 800;
}

.account-status,
.message,
.requiredFields {
    border-radius: 0.35rem;
    display: block;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.message:not(:empty),
.requiredFields {
    background: color-mix(in srgb, var(--icaas-accent) 10%, var(--icaas-surface-bg));
    border: 1px solid color-mix(in srgb, var(--icaas-accent) 35%, var(--icaas-border));
    color: var(--icaas-text);
    padding: 0.75rem 0.9rem;
}

.requiredFields ul {
    margin: 0;
    padding-left: 1.1rem;
}

.field-validation-error {
    color: #b42318 !important;
    font-size: 0.75rem;
    font-weight: 700;
}

.account-choice {
    align-items: center;
    color: var(--icaas-muted);
    display: flex;
    font-size: 0.7rem;
    font-weight: 800;
    gap: 0.75rem;
    margin: 1.15rem 0;
    text-transform: uppercase;
}

.account-choice::before,
.account-choice::after {
    background: var(--icaas-border);
    content: "";
    flex: 1 1 auto;
    height: 1px;
}

.account-section {
    border-top: 1px solid var(--icaas-border);
    margin-top: 1.5rem;
    padding-top: 1.4rem;
}

.account-section-title {
    color: var(--icaas-text);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.account-note {
    background: var(--icaas-surface-alt);
    border-left: 3px solid var(--icaas-primary);
    color: var(--icaas-muted);
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.9rem;
}

.account-activation {
    color: var(--icaas-text);
    font-size: 1.05rem;
    line-height: 1.55;
    text-align: center;
}

.account-portal-footer {
    background: var(--icaas-footer-bg);
    border-top: 1px solid var(--icaas-border);
    color: var(--icaas-footer-text);
    font-size: 0.73rem;
}

.account-portal-footer .container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

[data-icaas-theme="kcaa"] .account-portal-header {
    border-bottom-color: #e77d34;
    box-shadow: 0 0.35rem 1rem rgba(5, 92, 171, 0.1);
}

[data-icaas-theme="kcaa"] .account-portal-footer {
    background: #033f73;
    border-top-color: #055cab;
    color: #ffffff;
}

.staff-login-body {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--icaas-primary-strong) 92%, #000),
            color-mix(in srgb, var(--icaas-primary) 82%, #111827));
    min-height: 100vh;
}

.staff-login-shell {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(18rem, 0.9fr) minmax(22rem, 1.1fr);
    margin: 0 auto;
    max-width: 68rem;
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 3rem);
}

.staff-login-brand,
.staff-login-panel {
    min-width: 0;
}

.staff-login-brand {
    align-content: center;
    background: color-mix(in srgb, var(--icaas-primary-strong) 88%, transparent);
    color: #fff;
    display: grid;
    padding: clamp(2rem, 5vw, 4rem);
}

.staff-login-brand img {
    background: #fff;
    border-radius: 0.4rem;
    max-width: 16rem;
    padding: 0.5rem;
    width: 100%;
}

.staff-login-brand h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 850;
    margin: 2rem 0 0.6rem;
}

.staff-login-brand p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.staff-login-panel {
    align-content: center;
    background: var(--icaas-surface-bg);
    display: grid;
    padding: clamp(2rem, 6vw, 5rem);
}

.staff-login-panel h2 {
    color: var(--icaas-text);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.staff-login-panel > p {
    color: var(--icaas-muted);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
}

.staff-login-support {
    background: var(--icaas-surface-alt);
    border-left: 3px solid var(--icaas-accent);
    color: var(--icaas-muted);
    display: grid;
    font-size: 0.75rem;
    gap: 0.25rem;
    margin-top: 1.5rem;
    padding: 0.75rem 0.9rem;
}

.staff-login-support strong {
    color: var(--icaas-text);
}

@media (max-width: 767.98px) {
    .account-portal-header-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .account-portal-links {
        border-top: 1px solid var(--icaas-border);
        justify-content: flex-end;
        overflow-x: auto;
        padding-top: 0.55rem;
    }

    .account-font-selector {
        flex: 0 0 auto;
    }

    .account-portal-main {
        padding: 1.25rem 0;
    }

    .account-login-layout {
        display: block;
        min-height: 0;
    }

    .account-login-welcome {
        min-height: 18rem;
        padding: 1.5rem;
    }

    .account-login-logo {
        max-width: 9rem;
    }

    .account-login-welcome-copy {
        padding: 1.75rem 0;
    }

    .account-login-welcome h1 {
        font-size: 2rem;
        max-width: 16ch;
    }

    .account-login-welcome-copy p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .account-login-form {
        padding: 1.5rem 1.25rem;
    }

    .account-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .account-panel-body .form-group.row > [class*="col-"] {
        width: 100%;
    }

    .account-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-registration-prompt {
        margin: 1.5rem -1.25rem -1.25rem;
    }

    .account-actions .btn,
    .account-secondary-link {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .account-portal-footer .container {
        align-items: center;
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }

    .staff-login-shell {
        display: block;
        padding: 0;
    }

    .staff-login-brand {
        padding: 2rem 1.25rem;
    }

    .staff-login-brand img {
        max-width: 11rem;
    }

    .staff-login-brand h1 {
        font-size: 1.65rem;
        margin-top: 1.25rem;
    }

    .staff-login-panel {
        align-content: start;
        min-height: 0;
        padding: 2rem 1.25rem;
    }

    .staff-login-panel > * {
        align-self: start;
    }

    .staff-login-panel .account-actions,
    .staff-login-panel .account-primary-action {
        min-height: 2.9rem;
        width: 100%;
    }

    .staff-login-panel .account-primary-action {
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .account-portal-header-inner {
        gap: 0.65rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .account-portal-brand {
        gap: 0.65rem;
        min-width: 0;
    }

    .account-portal-logo {
        flex: 0 0 auto;
        max-width: 6.5rem;
    }

    .account-portal-brand-copy {
        min-width: 0;
    }

    .account-portal-brand-copy span,
    .account-portal-brand-copy strong {
        overflow-wrap: anywhere;
    }

    .account-portal-links {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        width: 100%;
    }

    .account-font-selector {
        align-items: stretch;
        display: grid;
        gap: 0.2rem;
        min-width: 0;
    }

    .account-font-selector select {
        max-width: 100%;
        min-height: 2.65rem;
        width: 100%;
    }

    .account-portal-links > a,
    .account-portal-links input,
    .account-portal-signout {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 2.65rem;
        text-align: center;
        width: 100%;
    }

    .account-portal-main > .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .account-login-welcome {
        min-height: 14rem;
        padding: 1.15rem;
    }

    .account-login-welcome-copy {
        padding: 1.25rem 0;
    }

    .account-login-welcome h1 {
        font-size: 1.7rem;
    }

    .account-login-form {
        padding: 1.25rem 1rem;
    }

    .account-registration-prompt {
        margin: 1.25rem -1rem -1rem;
    }

    .account-panel-header,
    .account-panel-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .staff-login-brand,
    .staff-login-panel {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Distinct account header groups for desktop and mobile. */
.account-portal-header {
    min-height: 6rem;
}

.account-portal-header-inner {
    min-height: 6rem;
}

.account-portal-logo {
    box-shadow: 0 0.25rem 0.8rem color-mix(in srgb, var(--icaas-primary) 13%, transparent);
}

.account-portal-brand-copy {
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--icaas-primary) 9%, var(--icaas-topbar-bg)),
        transparent);
    border-left: 3px solid var(--icaas-accent);
    border-radius: 0 0.35rem 0.35rem 0;
    padding: 0.45rem 0.75rem;
}

.account-portal-links {
    background: color-mix(in srgb, var(--icaas-surface-alt) 78%, transparent);
    border: 1px solid var(--icaas-border);
    border-radius: 0.45rem;
    gap: 0.45rem;
    padding: 0.4rem;
}

.account-display-controls,
.account-session-links {
    align-items: center;
    display: flex;
    gap: 0.35rem;
}

.account-display-controls {
    border-right: 1px solid var(--icaas-border);
    padding-right: 0.45rem;
}

.account-header-group-label {
    color: var(--icaas-primary);
    display: none;
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
}

.account-font-selector {
    background: var(--icaas-surface-bg);
    border: 1px solid var(--icaas-border);
    border-radius: 0.35rem;
    margin: 0;
    padding: 0.3rem 0.4rem;
}

.account-font-selector select {
    border: 0;
    min-height: 2rem;
}

.account-session-links > a,
.account-session-links > input {
    background: var(--icaas-surface-bg);
    border-color: var(--icaas-border);
}

@media (max-width: 991.98px) {
    .account-portal-header,
    .account-portal-header-inner {
        min-height: 0;
    }

    .account-portal-header-inner {
        display: grid;
        gap: 0;
        max-width: none;
        padding: 0;
    }

    .account-portal-brand {
        background: linear-gradient(100deg,
            color-mix(in srgb, var(--icaas-primary) 9%, var(--icaas-topbar-bg)),
            var(--icaas-topbar-bg) 70%);
        border-bottom: 1px solid var(--icaas-border);
        padding: 0.75rem max(0.85rem, env(safe-area-inset-right))
            0.75rem max(0.85rem, env(safe-area-inset-left));
        width: 100%;
    }

    .account-portal-links {
        background: var(--icaas-topbar-bg);
        border: 0;
        border-radius: 0;
        display: grid;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .account-display-controls,
    .account-session-links {
        align-items: stretch;
        display: grid;
        gap: 0.45rem;
        padding: 0.65rem max(0.85rem, env(safe-area-inset-right))
            0.7rem max(0.85rem, env(safe-area-inset-left));
    }

    .account-display-controls {
        background: var(--icaas-surface-alt);
        border-bottom: 1px solid var(--icaas-border);
        border-right: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-session-links {
        background: var(--icaas-surface-bg);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-header-group-label {
        display: block;
        grid-column: 1 / -1;
    }

    .account-font-selector {
        align-items: stretch;
        display: grid;
        gap: 0.2rem;
        padding: 0.4rem 0.5rem;
    }

    .account-font-selector select {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .account-portal-brand-copy span {
        display: block;
        font-size: 0.58rem;
    }

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

    .account-portal-links {
        border-top: 0;
    }

    .account-session-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-session-links > a,
    .account-session-links > input,
    .account-session-links .account-portal-signout {
        min-height: 2.75rem;
        width: 100%;
    }
}

/* Final cascade guard for the premium standalone staff login page. */
body.staff-login-body {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 122, 24, 0.2), transparent 27rem),
        radial-gradient(circle at 84% 12%, rgba(0, 119, 190, 0.18), transparent 31rem),
        linear-gradient(135deg, #eef7fc 0%, #f9fbfd 46%, #eaf4f0 100%);
}

body.staff-login-body .staff-login-shell {
    display: grid;
    gap: 1rem;
    max-width: 74rem;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.5rem);
    width: 100%;
}

body.staff-login-body .staff-login-gateway {
    align-self: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(5, 92, 171, 0.16);
    border-radius: 0.9rem;
    box-shadow: 0 2rem 4.5rem rgba(15, 23, 42, 0.16);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.86fr);
    min-height: min(40rem, calc(100vh - 7rem));
    overflow: hidden;
    position: relative;
}

body.staff-login-body .staff-login-gateway::before {
    background: linear-gradient(90deg, #005cab, #0077be 72%, #f47b20);
    content: "";
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
    z-index: 2;
}

body.staff-login-body .staff-login-brand {
    background:
        linear-gradient(135deg, rgba(0, 92, 171, 0.96), rgba(0, 69, 130, 0.94) 52%, rgba(0, 123, 132, 0.9)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 90px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    padding: clamp(1.8rem, 3.4vw, 3.2rem);
    position: relative;
}

body.staff-login-body .staff-login-panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.8rem, 4vw, 3.6rem);
}

body.staff-login-body .staff-login-logo {
    background: #fff;
    border-radius: 0.65rem;
    max-width: 14rem;
    padding: 0.55rem;
    width: min(52%, 14rem);
}

body.staff-login-body .staff-login-copy h1 {
    color: #fff;
    font-size: clamp(2rem, 3.35vw, 3.25rem);
    font-weight: 900;
    line-height: 1.02;
    margin: 0;
    max-width: 11ch;
    overflow-wrap: normal;
}

body.staff-login-body .staff-login-panel h2 {
    color: #142033;
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
}

body.staff-login-body .staff-login-field .form-control {
    background: #f8fbff;
    border: 1px solid #c7d7e8;
    border-radius: 0.55rem;
    color: #142033;
    font-size: 0.98rem;
    font-weight: 650;
    min-height: 3.35rem;
}

body.staff-login-body .staff-login-actions .account-primary-action {
    background: linear-gradient(135deg, #005cab, #0077be);
    border: 0;
    border-radius: 0.55rem;
    color: #fff;
    font-weight: 900;
    min-height: 3.35rem;
    width: 100%;
}

body.staff-login-body .staff-login-footer {
    display: flex;
}

@media (max-width: 1199.98px) {
    body.staff-login-body .staff-login-shell {
        padding: 0;
    }

    body.staff-login-body .staff-login-gateway {
        border-radius: 0;
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    body.staff-login-body .staff-login-brand {
        min-height: auto;
        padding: 2rem 1.25rem;
    }

    body.staff-login-body .staff-login-copy {
        padding: 1.6rem 0;
    }

    body.staff-login-body .staff-login-copy h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        max-width: 18ch;
    }

    body.staff-login-body .staff-login-panel {
        padding: 2rem 1.25rem;
    }

    body.staff-login-body .staff-login-footer {
        display: none;
    }
}

/* Emergency stable login layout: premium single-card rendering, no split overlap. */
html body.staff-login-body {
    background:
        radial-gradient(circle at 18% 12%, rgba(244, 123, 32, 0.18), transparent 24rem),
        radial-gradient(circle at 82% 12%, rgba(0, 92, 171, 0.14), transparent 28rem),
        linear-gradient(135deg, #eef7fc 0%, #f8fbff 45%, #ecf6f1 100%) !important;
    min-height: 100vh !important;
}

html[data-bs-theme="dark"] body.staff-login-body {
    background:
        radial-gradient(circle at 18% 12%, rgba(244, 123, 32, 0.14), transparent 24rem),
        radial-gradient(circle at 82% 12%, rgba(0, 119, 190, 0.2), transparent 28rem),
        linear-gradient(135deg, #101419 0%, #171c22 45%, #0e1d27 100%) !important;
}

html body.staff-login-body .staff-login-shell {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 auto !important;
    max-width: none !important;
    min-height: 100vh !important;
    padding: clamp(1rem, 3vw, 2.5rem) !important;
    width: 100% !important;
}

html body.staff-login-body .staff-login-gateway {
    background: #fff !important;
    border: 1px solid rgba(5, 92, 171, 0.16) !important;
    border-radius: 0.9rem !important;
    box-shadow: 0 1.6rem 4rem rgba(15, 23, 42, 0.16) !important;
    display: block !important;
    max-width: 34rem !important;
    min-height: 0 !important;
    overflow: hidden !important;
    width: min(100%, 34rem) !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-gateway {
    background: #181d24 !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html body.staff-login-body .staff-login-brand {
    background:
        linear-gradient(135deg, rgba(0, 92, 171, 0.98), rgba(0, 69, 130, 0.96) 54%, rgba(0, 123, 132, 0.92)) !important;
    color: #fff !important;
    display: grid !important;
    gap: 1.15rem !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 1.35rem 1.45rem !important;
}

html body.staff-login-body .staff-login-brand::after {
    display: none !important;
}

html body.staff-login-body .staff-login-brand-top {
    align-items: center !important;
    display: flex !important;
    gap: 0.85rem !important;
    justify-content: space-between !important;
}

html body.staff-login-body .staff-login-logo {
    background: #fff !important;
    border-radius: 0.55rem !important;
    box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.14) !important;
    flex: 0 0 auto !important;
    max-width: 10.5rem !important;
    padding: 0.4rem !important;
    width: 10.5rem !important;
}

html body.staff-login-body .staff-login-system-badge {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    padding: 0.5rem 0.75rem !important;
}

html body.staff-login-body .staff-login-copy {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}

html body.staff-login-body .staff-login-eyebrow {
    color: #ffca9d !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 0.4rem !important;
}

html body.staff-login-body .staff-login-copy h1 {
    color: #fff !important;
    font-size: clamp(1.45rem, 4.5vw, 2rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    max-width: none !important;
    overflow-wrap: normal !important;
}

html body.staff-login-body .staff-login-copy p {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin: 0.65rem 0 0 !important;
    max-width: none !important;
}

html body.staff-login-body .staff-login-assurance {
    display: none !important;
}

html body.staff-login-body .staff-login-panel {
    background: #fff !important;
    display: block !important;
    padding: 1.45rem !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-panel {
    background: #181d24 !important;
}

html body.staff-login-body .staff-login-panel-heading {
    margin-bottom: 1.2rem !important;
}

html body.staff-login-body .staff-login-panel-heading .staff-login-eyebrow {
    color: #0077be !important;
}

html body.staff-login-body .staff-login-panel h2 {
    color: #142033 !important;
    font-size: clamp(1.85rem, 5vw, 2.35rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    margin: 0 !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-panel h2 {
    color: #f8fafc !important;
}

html body.staff-login-body .staff-login-panel-heading p {
    color: #64748b !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin: 0.55rem 0 0 !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-panel-heading p {
    color: #cbd5e1 !important;
}

html body.staff-login-body .staff-login-field {
    margin-bottom: 0.95rem !important;
}

html body.staff-login-body .staff-login-field .form-control {
    border-radius: 0.55rem !important;
    min-height: 3.05rem !important;
    width: 100% !important;
}

html body.staff-login-body .account-password-field {
    align-items: stretch !important;
    display: flex !important;
    width: 100% !important;
}

html body.staff-login-body .account-password-field .form-control {
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

html body.staff-login-body .account-password-field .account-password-toggle {
    background: #f8fbff !important;
    border: 1px solid #c7d7e8 !important;
    border-left: 0 !important;
    border-radius: 0 0.55rem 0.55rem 0 !important;
    color: #0077be !important;
    flex: 0 0 4.7rem !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    min-height: 3.05rem !important;
    padding: 0 0.65rem !important;
}

html body.staff-login-body .staff-login-actions .account-primary-action {
    min-height: 3.15rem !important;
    width: 100% !important;
}

html body.staff-login-body .staff-login-support {
    margin-top: 1rem !important;
}

html body.staff-login-body .staff-login-footer {
    align-self: center !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(5, 92, 171, 0.12) !important;
    border-radius: 0.55rem !important;
    color: #475569 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    font-size: 0.78rem !important;
    justify-content: space-between !important;
    max-width: 34rem !important;
    margin-top: 0.75rem !important;
    padding: 0.55rem 0.75rem !important;
    position: static !important;
    width: min(100%, 34rem) !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-footer {
    background: rgba(24, 29, 36, 0.74) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #cbd5e1 !important;
}

@media (max-width: 575.98px) {
    html body.staff-login-body .staff-login-shell {
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    html body.staff-login-body .staff-login-gateway {
        border-radius: 0 !important;
        box-shadow: none !important;
        max-width: none !important;
        width: 100% !important;
    }

    html body.staff-login-body .staff-login-brand,
    html body.staff-login-body .staff-login-panel {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    html body.staff-login-body .staff-login-logo {
        width: 9rem !important;
    }

    html body.staff-login-body .staff-login-footer {
        display: none !important;
    }
}

/* Clean KCAA login: simple, quiet, and focused. */
html body.staff-login-body {
    background: #eef5fa !important;
}

html[data-bs-theme="dark"] body.staff-login-body {
    background: #111827 !important;
}

html body.staff-login-body .staff-login-shell {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 1.25rem !important;
}

html body.staff-login-body .staff-login-gateway {
    background: #ffffff !important;
    border: 1px solid #d6e3f0 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1.1rem 2.8rem rgba(15, 23, 42, 0.12) !important;
    display: block !important;
    max-width: 30rem !important;
    overflow: hidden !important;
    width: min(100%, 30rem) !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-gateway {
    background: #18212f !important;
    border-color: #334155 !important;
}

html body.staff-login-body .staff-login-gateway::before {
    background: linear-gradient(90deg, #005cab, #f47b20) !important;
    height: 4px !important;
}

html body.staff-login-body .staff-login-brand {
    background: #ffffff !important;
    border-bottom: 1px solid #e3edf6 !important;
    color: #142033 !important;
    display: block !important;
    padding: 1.5rem 1.5rem 1.2rem !important;
    text-align: center !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-brand {
    background: #18212f !important;
    border-bottom-color: #334155 !important;
    color: #f8fafc !important;
}

html body.staff-login-body .staff-login-brand-top {
    display: block !important;
}

html body.staff-login-body .staff-login-logo {
    border: 1px solid #d6e3f0 !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 auto 1rem !important;
    max-width: 12rem !important;
    padding: 0.35rem !important;
    width: 12rem !important;
}

html body.staff-login-body .staff-login-system-badge {
    display: none !important;
}

html body.staff-login-body .staff-login-copy {
    padding: 0 !important;
}

html body.staff-login-body .staff-login-copy .staff-login-eyebrow {
    color: #005cab !important;
    font-size: 0.72rem !important;
    margin-bottom: 0.35rem !important;
}

html body.staff-login-body .staff-login-copy h1 {
    color: #142033 !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin: 0 auto !important;
    max-width: 20rem !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-copy h1 {
    color: #f8fafc !important;
}

html body.staff-login-body .staff-login-copy p,
html body.staff-login-body .staff-login-assurance {
    display: none !important;
}

html body.staff-login-body .staff-login-panel {
    background: #ffffff !important;
    padding: 1.5rem !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-panel {
    background: #18212f !important;
}

html body.staff-login-body .staff-login-panel-heading {
    margin-bottom: 1.15rem !important;
    text-align: left !important;
}

html body.staff-login-body .staff-login-panel-heading .staff-login-eyebrow {
    display: none !important;
}

html body.staff-login-body .staff-login-panel h2 {
    color: #142033 !important;
    font-size: 1.65rem !important;
    font-weight: 900 !important;
    margin: 0 0 0.35rem !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-panel h2 {
    color: #f8fafc !important;
}

html body.staff-login-body .staff-login-panel-heading p {
    color: #64748b !important;
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

html body.staff-login-body .staff-login-field .form-control {
    background: #f8fbff !important;
    border: 1px solid #cbd9e8 !important;
    border-radius: 0.45rem !important;
    min-height: 2.95rem !important;
}

html body.staff-login-body .account-password-field .form-control {
    border-radius: 0.45rem 0 0 0.45rem !important;
}

html body.staff-login-body .account-password-field .account-password-toggle {
    border-color: #cbd9e8 !important;
    border-radius: 0 0.45rem 0.45rem 0 !important;
    min-height: 2.95rem !important;
}

html body.staff-login-body .staff-login-actions .account-primary-action {
    border-radius: 0.45rem !important;
    box-shadow: none !important;
    min-height: 3rem !important;
}

html body.staff-login-body .staff-login-support {
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #e3edf6 !important;
    border-radius: 0 !important;
    margin-top: 1rem !important;
    padding: 0.9rem 0 0 !important;
}

html body.staff-login-body .staff-login-footer {
    display: none !important;
}

/* KCAA branded login polish: clean card, strong authority colors. */
html body.staff-login-body {
    background:
        radial-gradient(circle at 18% 14%, rgba(244, 123, 32, 0.2), transparent 22rem),
        radial-gradient(circle at 84% 8%, rgba(0, 92, 171, 0.18), transparent 28rem),
        linear-gradient(135deg, #eaf4fb 0%, #f8fbff 45%, #edf8f5 100%) !important;
}

html[data-bs-theme="dark"] body.staff-login-body {
    background:
        radial-gradient(circle at 18% 14%, rgba(244, 123, 32, 0.18), transparent 22rem),
        radial-gradient(circle at 84% 8%, rgba(0, 119, 190, 0.25), transparent 28rem),
        linear-gradient(135deg, #0f172a 0%, #111827 50%, #0e2730 100%) !important;
}

html body.staff-login-body .staff-login-shell {
    padding: clamp(1rem, 3vw, 2.25rem) !important;
}

html body.staff-login-body .staff-login-gateway {
    background: #ffffff !important;
    border: 1px solid rgba(0, 92, 171, 0.18) !important;
    border-radius: 0.95rem !important;
    box-shadow:
        0 2rem 4rem rgba(0, 65, 120, 0.16),
        0 0 0 0.45rem rgba(255, 255, 255, 0.58) !important;
    max-width: 31.5rem !important;
    width: min(100%, 31.5rem) !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-gateway {
    background: #172033 !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    box-shadow:
        0 2rem 4rem rgba(0, 0, 0, 0.38),
        0 0 0 0.45rem rgba(15, 23, 42, 0.5) !important;
}

html body.staff-login-body .staff-login-gateway::before {
    background: linear-gradient(90deg, #005cab 0%, #0077be 72%, #f47b20 100%) !important;
    height: 6px !important;
}

html body.staff-login-body .staff-login-brand {
    background:
        linear-gradient(145deg, rgba(0, 92, 171, 0.98) 0%, rgba(0, 72, 138, 0.98) 58%, rgba(0, 125, 137, 0.96) 100%) !important;
    border-bottom: 0 !important;
    color: #fff !important;
    padding: 1.65rem 1.65rem 1.45rem !important;
    position: relative !important;
    text-align: left !important;
}

html body.staff-login-body .staff-login-brand::before {
    background: rgba(255, 255, 255, 0.11) !important;
    border-radius: 999px !important;
    content: "" !important;
    display: block !important;
    height: 13rem !important;
    position: absolute !important;
    right: -5rem !important;
    top: -6rem !important;
    width: 13rem !important;
}

html body.staff-login-body .staff-login-brand-top {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    position: relative !important;
    z-index: 1 !important;
}

html body.staff-login-body .staff-login-logo {
    border: 1px solid rgba(255, 255, 255, 0.58) !important;
    border-radius: 0.65rem !important;
    box-shadow: 0 0.85rem 1.7rem rgba(0, 0, 0, 0.14) !important;
    margin: 0 !important;
    max-width: 11.5rem !important;
    padding: 0.42rem !important;
    width: 11.5rem !important;
}

html body.staff-login-body .staff-login-system-badge {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    color: #fff !important;
    display: inline-flex !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    min-height: 2.35rem !important;
    padding: 0.45rem 0.8rem !important;
}

html body.staff-login-body .staff-login-copy {
    margin-top: 1.25rem !important;
    position: relative !important;
    z-index: 1 !important;
}

html body.staff-login-body .staff-login-copy .staff-login-eyebrow {
    color: #ffca9d !important;
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
}

html body.staff-login-body .staff-login-copy h1 {
    color: #fff !important;
    font-size: clamp(1.55rem, 4vw, 2.1rem) !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    max-width: 21rem !important;
}

html body.staff-login-body .staff-login-copy p {
    color: rgba(255, 255, 255, 0.86) !important;
    display: block !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin: 0.7rem 0 0 !important;
    max-width: 27rem !important;
}

html body.staff-login-body .staff-login-panel {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    padding: 1.65rem !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-panel {
    background: linear-gradient(180deg, #172033 0%, #111827 100%) !important;
}

html body.staff-login-body .staff-login-panel-heading {
    border-bottom: 1px solid #e3edf6 !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 1rem !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-panel-heading {
    border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}

html body.staff-login-body .staff-login-panel h2 {
    color: #142033 !important;
    font-size: 1.75rem !important;
    font-weight: 900 !important;
}

html body.staff-login-body .staff-login-panel-heading p {
    color: #5f7188 !important;
    font-size: 0.88rem !important;
}

html body.staff-login-body .staff-login-field .form-label {
    color: #142033 !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-field .form-label {
    color: #f8fafc !important;
}

html body.staff-login-body .staff-login-field .form-control {
    background: #f5f9fe !important;
    border: 1px solid #c6d8ea !important;
    color: #142033 !important;
    font-weight: 750 !important;
}

html body.staff-login-body .staff-login-field .form-control:focus {
    background: #fff !important;
    border-color: #0077be !important;
    box-shadow: 0 0 0 0.22rem rgba(0, 119, 190, 0.14) !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-field .form-control {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html body.staff-login-body .account-password-field .account-password-toggle {
    background: #eef6fd !important;
    color: #005cab !important;
}

html[data-bs-theme="dark"] body.staff-login-body .account-password-field .account-password-toggle {
    background: #172033 !important;
    border-color: #334155 !important;
    color: #7dd3fc !important;
}

html body.staff-login-body .staff-login-actions .account-primary-action {
    background: linear-gradient(135deg, #005cab, #0077be) !important;
    box-shadow: 0 0.85rem 1.55rem rgba(0, 92, 171, 0.22) !important;
    letter-spacing: 0.01em !important;
}

html body.staff-login-body .staff-login-actions .account-primary-action:hover,
html body.staff-login-body .staff-login-actions .account-primary-action:focus {
    background: linear-gradient(135deg, #004d91, #006ba8) !important;
}

html body.staff-login-body .staff-login-support {
    background: #f6f9fd !important;
    border: 1px solid #dbe8f5 !important;
    border-left: 4px solid #f47b20 !important;
    border-radius: 0.55rem !important;
    margin-top: 1rem !important;
    padding: 0.82rem 0.9rem !important;
}

html[data-bs-theme="dark"] body.staff-login-body .staff-login-support {
    background: #0f172a !important;
    border-color: #334155 !important;
    border-left-color: #f47b20 !important;
}

@media (max-width: 575.98px) {
    html body.staff-login-body .staff-login-brand,
    html body.staff-login-body .staff-login-panel {
        padding: 1.2rem !important;
    }

    html body.staff-login-body .staff-login-logo {
        width: 9.5rem !important;
    }

    html body.staff-login-body .staff-login-copy h1 {
        font-size: 1.55rem !important;
    }
}

/* KCAA login desktop split layout, mobile single column. */
@media (min-width: 992px) {
    html body.staff-login-body .staff-login-shell {
        padding: clamp(1.25rem, 3vw, 2.5rem) !important;
    }

    html body.staff-login-body .staff-login-gateway {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr) !important;
        max-width: 76rem !important;
        min-height: min(42rem, calc(100vh - 6rem)) !important;
        width: min(100%, 76rem) !important;
    }

    html body.staff-login-body .staff-login-brand {
        align-content: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        min-width: 0 !important;
        padding: clamp(2rem, 3vw, 3.25rem) !important;
        text-align: left !important;
    }

    html body.staff-login-body .staff-login-brand-top {
        display: flex !important;
    }

    html body.staff-login-body .staff-login-logo {
        margin: 0 !important;
        width: 12rem !important;
    }

    html body.staff-login-body .staff-login-copy {
        margin: auto 0 !important;
        max-width: 36rem !important;
        padding: 2rem 0 !important;
    }

    html body.staff-login-body .staff-login-copy h1 {
        font-size: clamp(2.25rem, 3.4vw, 3.6rem) !important;
        line-height: 1.04 !important;
        max-width: 12ch !important;
    }

    html body.staff-login-body .staff-login-copy p {
        max-width: 32rem !important;
    }

    html body.staff-login-body .staff-login-assurance {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body.staff-login-body .staff-login-panel {
        align-self: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
        padding: clamp(2rem, 3.5vw, 3.6rem) !important;
    }
}

@media (max-width: 991.98px) {
    html body.staff-login-body .staff-login-gateway {
        display: block !important;
        max-width: 32rem !important;
        width: min(100%, 32rem) !important;
    }

    html body.staff-login-body .staff-login-brand {
        text-align: left !important;
    }

    html body.staff-login-body .staff-login-copy h1 {
        max-width: 22rem !important;
    }

    html body.staff-login-body .staff-login-assurance {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    body.staff-login-body .staff-login-copy {
        max-width: 30rem;
    }
}

.staff-login-reset-link {
    margin-top: -.35rem;
    margin-bottom: 1rem;
    text-align: right;
}

.staff-login-reset-link a {
    color: #0072bc;
    font-weight: 800;
    text-decoration: none;
}

.staff-login-reset-link a:hover,
.staff-login-reset-link a:focus {
    color: #005b96;
    text-decoration: underline;
}

.kcaa-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(4, 28, 49, .48);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

.kcaa-busy-overlay.is-active {
    display: flex;
}

.kcaa-busy-lock {
    overflow: hidden;
}

.kcaa-busy-card {
    position: relative;
    isolation: isolate;
    width: min(520px, calc(100vw - 2rem));
    min-height: 285px;
    display: grid;
    place-items: center;
    gap: .85rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(159, 207, 239, .9);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,246,255,.92));
    box-shadow: 0 30px 75px rgba(3, 40, 73, .32);
}

.kcaa-busy-logo {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .085;
    background: url("../../Images/KCAA_Official_Logo.png") center / min(390px, 82%) no-repeat;
}

.kcaa-busy-spinner {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 12px solid rgba(0, 114, 188, .16);
    border-top-color: #0072bc;
    border-right-color: #f58220;
    animation: kcaaBusySpin .9s linear infinite;
}

.kcaa-busy-card h2 {
    margin: .35rem 0 0;
    color: #111827;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: 0;
}

.kcaa-busy-card p {
    margin: 0;
    color: #526173;
    font-size: clamp(.98rem, 2vw, 1.15rem);
    font-weight: 800;
}

@keyframes kcaaBusySpin {
    to {
        transform: rotate(360deg);
    }
}
