body:has(.auth-wrap) .site-content {
    margin-top: 2rem;
}

body:has(.auth-wrap) .site-footer {
    margin-top: 0;
}

/* ── Layout ── */
.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    min-height: calc(100vh - 4rem);
}

/* ── Brand panel (left) ── */
.auth-panel--brand {
    background: var(--deep-green);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px);
}

.auth-brand__glow {
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(59, 174, 111, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand__glow--tl {
    bottom: auto;
    right: auto;
    top: -160px;
    left: -100px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}

.auth-brand__inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-brand__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

.auth-brand__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fresh-green);
    animation: auth-pulse 2s infinite;
}

@keyframes auth-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.auth-brand__title {
    font-family: var(--font-head), sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    line-height: 1.0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 18px;
    max-width: 9ch;
}

.auth-brand__sub {
    font-family: var(--font-body), sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
    max-width: 38ch;
    margin-bottom: 32px;
}

.auth-feature-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.auth-feature-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body), sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.02em;
}

.auth-feature-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(59, 174, 111, 0.18);
    border: 1px solid rgba(59, 174, 111, 0.35);
    color: var(--fresh-green);
    flex-shrink: 0;
}

/* ── Form panel (right) ── */
.auth-panel--form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--pure-white);
    padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px);
    overflow-y: auto;
}

.auth-form-inner {
    width: 100%;
    max-width: 440px;
}

/* ── Form header ── */
.auth-form__header {
    margin-bottom: 28px;
}

.auth-form__eyebrow {
    font-family: var(--font-head), sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fresh-green);
    margin-bottom: 8px;
}

.auth-form__title {
    font-family: var(--font-head), sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--deep-anthracite);
    line-height: 1.1;
}

/* ── Flash alerts ── */
.auth-alert {
    margin-bottom: 18px;
}

.auth-alert--error {
    border-color: #e53e3e;
    background: #fff5f5;
}

.auth-alert--error .sol-alert__title {
    color: #c53030;
}

/* ── Form grid ── */
.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Fields ── */
.auth-field {
    display: grid;
    gap: 6px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-label-opt {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--deep-black);
    opacity: 0.5;
    font-size: 0.8rem;
    margin-left: 4px;
}

.auth-field__error {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Input wrapper ── */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    color: var(--deep-green);
    opacity: 0.5;
    pointer-events: none;
    display: flex;
}

.auth-input {
    padding-left: 40px !important;
}

/* ── Show/hide password toggle ── */
.auth-toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--deep-green);
    opacity: 0.45;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: opacity 0.15s;
}

.auth-toggle-pw:hover {
    opacity: 0.85;
}

.auth-toggle-pw:focus-visible {
    outline: 2px solid var(--fresh-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Password strength meter ── */
.auth-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 14px;
}

.auth-strength__bar {
    flex: 1;
    height: 4px;
    background: var(--gray-secondary);
    border-radius: 999px;
    overflow: hidden;
}

.auth-strength__fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.auth-strength__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--deep-black);
    opacity: 0.55;
    min-width: 48px;
    text-align: right;
}

/* ── Links ── */
.auth-link {
    font-size: 0.85rem;
    color: var(--fresh-green);
    font-weight: 600;
    transition: opacity 0.15s;
}

.auth-link:hover {
    opacity: 0.75;
}

.auth-link--strong {
    font-size: 1rem;
}

/* ── Submit button ── */
.auth-submit {
    margin-top: 6px;
    font-size: 0.95rem;
    padding: 13px 20px;
}

/* ── Footer note ── */
.auth-footer-text {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--deep-black);
    opacity: 0.65;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .auth-wrap {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .auth-panel--brand {
        padding: 48px 32px 56px;
        min-height: 280px;
    }

    .auth-brand__title {
        font-size: 2rem;
    }

    .auth-form__row {
        grid-template-columns: 1fr;
    }

    .auth-panel--form {
        padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 40px);
    }
}