/* ========================================
   AUTH STAGE — right panel: form column, main area, footer
   ======================================== */

.wf-auth-desktop .wf-auth-stage {
    position: relative;
    z-index: 1;
    flex: 0 0 58%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--gray-50);
}

/* Main scrollable region — centers content, scrolls if needed */
.wf-auth-desktop .wf-auth-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}

.wf-auth-desktop .wf-auth-main::-webkit-scrollbar {
    width: 4px;
}

.wf-auth-desktop .wf-auth-main::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
}

.wf-auth-desktop .wf-auth-main::-webkit-scrollbar-track {
    background: transparent;
}

/* Inner wrapper — margin: auto centers vertically when content is shorter */
.wf-auth-desktop .wf-auth-main__inner {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 32px 40px;
}

.wf-auth-desktop .wf-auth-main__inner:has(.wf-auth-content--signup) {
    max-width: 560px;
}

/* Footer — pinned to bottom, never scrolls */
.wf-auth-desktop .wf-auth-footer {
    flex-shrink: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--auth-pad-x);
    border-top: 1px solid var(--auth-border);
    background: var(--color-surface-muted);
}

.wf-auth-desktop .wf-auth-footer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

/* ── Content stack ── */
.wf-auth-desktop .wf-auth-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.wf-auth-desktop .wf-auth-content__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.wf-auth-desktop .wf-auth-content__header h1 {
    margin: 0;
    font-family: var(--font-family-secondary);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.wf-auth-desktop .wf-auth-content__header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-500);
    max-width: 42ch;
}

/* Login header gets extra separation from the form panel */
.wf-auth-desktop .wf-auth-content--login .wf-auth-content__header {
    margin-bottom: 28px;
}

.wf-auth-desktop .wf-auth-content--signup .wf-auth-content__header {
    margin-bottom: 12px;
}

.wf-auth-desktop .wf-auth-content--signup .wf-auth-content__header h1 {
    font-size: 22px;
    margin-bottom: 2px;
}

.wf-auth-desktop .wf-auth-content--signup .wf-auth-content__header p {
    font-size: 13px;
    margin: 0;
}

/* Switch link row */
.wf-auth-desktop .wf-auth-content__switch {
    margin: 20px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

.wf-auth-desktop .wf-auth-content--signup .wf-auth-content__switch {
    margin-top: 12px;
    font-size: 12px;
}

.wf-auth-desktop .wf-auth-content__switch a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.wf-auth-desktop .wf-auth-content__switch a:hover {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Responsive overrides ── */
@media (max-width: 900px) {
    .wf-auth-desktop .wf-auth-main__inner {
        padding: 24px 20px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .wf-auth-desktop .wf-auth-main__inner {
        padding: 20px 16px;
    }
}
