.staff-auth-body {
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 15% 20%, rgba(184,145,79,.18), transparent 32%),
        linear-gradient(135deg, #06120e, #0d261c);
}

.staff-auth-shell {
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(360px, 520px);
    width: min(1040px, 100%);
    overflow: hidden;
    border: 1px solid rgba(217,189,130,.25);
    border-radius: 18px;
    background: #f5f3ed;
    box-shadow: 0 35px 90px rgba(0,0,0,.35);
}

.staff-auth-brand {
    padding: 60px 54px;
    color: #fff;
    background: linear-gradient(145deg, #07130f, #123327);
}

.staff-auth-brand img {
    width: 84px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 45px;
}

.staff-auth-brand h1 {
    margin: 8px 0 18px;
    font: 600 clamp(2.8rem, 5vw, 4.5rem)/.9 "Cormorant Garamond", serif;
}

.staff-auth-brand>p:not(.eyebrow) {
    color: #bdc9c2;
    line-height: 1.8;
}

.staff-auth-card {
    padding: 55px 50px;
    background: #fff;
}

.staff-auth-card h2 {
    margin: 6px 0 28px;
    font: 600 2rem "Cormorant Garamond", serif;
}

.staff-auth-card h2 span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font: 500 .72rem "Noto Kufi Arabic", sans-serif;
}

.staff-auth-card form {
    display: grid;
    gap: 17px;
}

.staff-auth-card label {
    color: #37443e;
    font-size: .7rem;
    font-weight: 700;
}

.staff-auth-card label>span,
.staff-auth-card label>small {
    display: inline-block;
}

.staff-auth-card label>small {
    float: right;
    color: var(--muted);
    font: 500 .68rem "Noto Kufi Arabic", sans-serif;
}

.staff-auth-card input {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 0 13px;
    border: 1px solid #daddd6;
    border-radius: 8px;
    background: #fcfcfa;
    font: 500 .82rem Manrope, "Noto Kufi Arabic", sans-serif;
}

.staff-auth-card input:focus {
    border-color: var(--gold);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(184,145,79,.15);
}

.staff-auth-card .button {
    width: 100%;
    margin-top: 5px;
}

.security-note,
.password-rule {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: .63rem;
    line-height: 1.6;
}

.staff-auth-card .password-rule {
    margin: -6px 0 2px;
}

.auth-cancel {
    color: var(--muted);
    font-size: .7rem;
    text-align: center;
}

.compact-auth {
    max-width: 900px;
}

.staff-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.staff-header-controls>span strong,
.staff-header-controls>span small {
    display: block;
    text-align: right;
}

.staff-header-controls>span strong {
    font-size: .7rem;
}

.staff-header-controls>span small {
    margin-top: 2px;
    color: #9eaaa4;
    font-size: .58rem;
}

.staff-header-controls>a,
.staff-header-controls button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #c4cec9;
    font: 700 .72rem Manrope, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.staff-header-controls>a:hover,
.staff-header-controls button:hover {
    color: #fff;
}

.staff-header-controls form {
    display: inline;
}

.staff-role-summary {
    display: flex;
    justify-content: space-between;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.staff-role-summary a {
    color: var(--deep);
    font-size: .7rem;
    font-weight: 700;
}

.staff-locked {
    color: var(--danger)!important;
}

.audit-table code {
    display: block;
    max-width: 420px;
    margin-top: 7px;
    overflow-wrap: anywhere;
    color: #5b6660;
    font-size: .61rem;
    white-space: normal;
}

@media (max-width: 1050px) {
    .app-header:has(.staff-header-controls) {
        height: auto;
        min-height: 86px;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .staff-header-controls {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .staff-auth-body {
        padding: 15px;
    }

    .staff-auth-shell {
        grid-template-columns: 1fr;
    }

    .staff-auth-brand {
        padding: 30px;
    }

    .staff-auth-brand img {
        width: 58px;
        height: 66px;
        margin-bottom: 15px;
    }

    .staff-auth-brand h1 {
        font-size: 2.7rem;
    }

    .staff-auth-card {
        padding: 30px 24px;
    }

    .staff-header-controls>span {
        margin-right: auto;
    }
}
