.site-header {
    position: relative;
    z-index: 10;
    background: var(--surface);
    border-top: 3px solid #173b22;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    flex: 0 0 auto;
    color: var(--text-strong);
    font-size: 1.05rem;
    font-weight: 850;
    white-space: nowrap;
}

.brand:hover {
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .95rem;
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav a {
    flex: 0 0 auto;
    color: #526174;
    font-size: .9rem;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--primary);
}

.nav-logout {
    flex: 0 0 auto;
    margin: 0;
}

.nav-logout button {
    min-height: 38px;
    padding: .46rem .72rem;
    border-color: var(--border);
    background: #fff;
    color: var(--text);
    font-size: .86rem;
}

.nav-logout button:hover {
    border-color: #f1b8b8;
    background: #fff4f4;
    color: #a61e1e;
}

.page-shell {
    min-height: calc(100vh - 132px);
    padding: 2rem 0 3rem;
}

.site-footer {
    padding: 1.2rem 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: .84rem;
    overflow-wrap: anywhere;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 65vh;
}

.auth-panel {
    width: min(100%, 660px);
    padding: 1.75rem 1.9rem;
}

.auth-title-block {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 1rem;
}

.auth-panel h1 {
    margin: 0;
    font-size: clamp(1.85rem, 2.35vw, 2.45rem);
    line-height: 1.18;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.auth-slogan {
    margin: .22rem .08rem 0 0;
    text-align: right;
    color: var(--primary);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: .12em;
    transform: translateX(56px);
}

.auth-risk {
    margin-top: 1.35rem;
    padding: .95rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft, #f7f9fc);
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.65;
}
