/*
 * Wingman "auth" design system — split-panel sign-in.
 * Shared by: site root (/), /personnel-login/, and wp-login.php.
 * Dark-only. Derived from ref_design_inspiration/wingman-login.html.
 */

.wm-auth-body {
    --wm-bg: #141a21;
    --wm-panel: #1a2129;
    --wm-raised: #202832;
    --wm-line: #2a3441;
    --wm-line2: #354150;
    --wm-ink: #e7edf4;
    --wm-mut: #9fadbd;
    --wm-dim: #8b98a8;
    --wm-blue: #4c8dff;
    --wm-blue-hi: #6fa4ff;
    --wm-blue-tint: rgba(76, 141, 255, .14);
    --wm-brand: #064b95;
    --wm-brand-hi: #0a5aae;
    --wm-green: #39a97e;

    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #0d1218;
    color: var(--wm-ink);
    font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.wm-auth-body *,
.wm-auth-body *::before,
.wm-auth-body *::after {
    box-sizing: border-box;
}

.wm-auth-body h1,
.wm-auth-body h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.2;
}

/* utility text styles */
.wm-k {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .085em;
    text-transform: uppercase;
    color: var(--wm-dim);
}

.wm-m {
    font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
    font-size: 12px;
}

/* ---- shell ---- */
.wm-auth-shell {
    width: 100%;
    max-width: 1180px;
    background: var(--wm-bg);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 460px;
    min-height: 680px;
    opacity: 0;
    transform: translateY(10px);
    animation: wm-auth-rise .55s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes wm-auth-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wm-auth-shell {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---- brand panel ---- */
.wm-auth-brand {
    position: relative;
    overflow: hidden;
    padding: 38px 44px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #0a5aae, #064b95 46%, #043a72);
}

.wm-auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#ffffff12 1px, transparent 1px),
        linear-gradient(90deg, #ffffff12 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(95% 75% at 25% 35%, #000, transparent);
    mask-image: radial-gradient(95% 75% at 25% 35%, #000, transparent);
    pointer-events: none;
}

.wm-auth-kick {
    position: relative;
    font-size: 12.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
}

.wm-auth-lock {
    position: relative;
    margin-top: auto;
    max-width: 440px;
}

.wm-auth-lock img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.wm-auth-status {
    position: relative;
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.wm-auth-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5fd6a8;
    box-shadow: 0 0 0 3px rgba(95, 214, 168, .22);
}

.wm-auth-ver {
    margin-left: auto;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
}

/* ---- form panel ---- */
.wm-auth-panel {
    background: var(--wm-panel);
    border-left: 1px solid var(--wm-line);
    padding: 38px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.wm-auth-head h2 {
    font-size: 20px;
}

.wm-auth-head p {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--wm-mut);
}

.wm-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.wm-auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wm-auth-field-top {
    display: flex;
    align-items: baseline;
}

.wm-auth-forgot {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--wm-blue);
    text-decoration: none;
}

.wm-auth-forgot:hover {
    text-decoration: underline;
}

.wm-auth-body input[type=email],
.wm-auth-body input[type=password],
.wm-auth-body input[type=text] {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    color: var(--wm-ink);
    background: var(--wm-bg);
    border: 1px solid var(--wm-line2);
    border-radius: 6px;
}

.wm-auth-body input::placeholder {
    color: var(--wm-dim);
}

.wm-auth-body input:focus-visible {
    outline: 2px solid var(--wm-blue);
    outline-offset: 1px;
    border-color: var(--wm-blue);
}

.wm-auth-pw {
    position: relative;
    display: block;
}

.wm-auth-pw input {
    padding-right: 58px;
}

.wm-auth-btn {
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 6px;
    border: 1px solid var(--wm-line2);
    background: var(--wm-raised);
    color: var(--wm-ink);
    cursor: pointer;
}

.wm-auth-btn:hover {
    background: #28323e;
    border-color: #41505f;
}

.wm-auth-btn:focus-visible {
    outline: 2px solid var(--wm-blue);
    outline-offset: 1px;
}

.wm-auth-btn-q {
    background: transparent;
    border-color: transparent;
    color: var(--wm-blue);
}

.wm-auth-btn-q:hover {
    background: var(--wm-blue-tint);
    border-color: transparent;
}

.wm-auth-pw .wm-auth-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 4px 8px;
    font-size: 11.5px;
}

.wm-auth-submit {
    width: 100%;
    height: 40px;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--wm-brand-hi);
    border-color: var(--wm-brand-hi);
    color: #fff;
}

.wm-auth-submit:hover {
    background: #0d6bcc;
    border-color: #0d6bcc;
}

.wm-auth-submit:active {
    background: var(--wm-brand);
    border-color: var(--wm-brand);
}

.wm-auth-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--wm-mut);
    cursor: pointer;
}

.wm-auth-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--wm-blue);
}

.wm-auth-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--wm-dim);
}

.wm-auth-error {
    background: rgba(222, 72, 72, .12);
    border: 1px solid #c0453f;
    color: #ff9c96;
    padding: 10px 13px;
    border-radius: 6px;
    font-size: 12.5px;
}

.wm-auth-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--wm-line);
    display: flex;
    gap: 14px;
    font-size: 11.5px;
    color: var(--wm-dim);
}

.wm-auth-foot a {
    color: var(--wm-dim);
    text-decoration: none;
}

.wm-auth-foot a:hover {
    color: var(--wm-blue);
}

.wm-auth-foot .wm-m {
    margin-left: auto;
}

/* ---- responsive ---- */
@media (max-width: 880px) {
    .wm-auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .wm-auth-brand {
        min-height: 260px;
    }

    .wm-auth-panel {
        border-left: none;
        border-top: 1px solid var(--wm-line);
    }
}
