.auth-body {
    margin: 0;
    font-family: var(--nx-font-sans);
    color: var(--nx-text);
    background: var(--nx-surface);
    min-height: 100vh;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-shell__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nx-space-12) var(--nx-space-6);
    background: var(--nx-surface);
}

.auth-shell__form-inner {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-6);
}

.auth-shell__logo {
    display: inline-block;
    margin-bottom: var(--nx-space-2);
}

.auth-shell__logo img {
    height: 48px;
    width: auto;
}

.auth-shell__title {
    font-family: var(--nx-font-display);
    font-size: var(--nx-text-2xl);
    font-weight: var(--nx-fw-semibold);
    color: var(--nx-text);
    line-height: var(--nx-leading-tight);
    margin: 0;
}

.auth-shell__subtitle {
    font-size: var(--nx-text-sm);
    color: var(--nx-text-muted);
    line-height: var(--nx-leading-snug);
    margin: var(--nx-space-2) 0 0;
}

.auth-shell__form-grid {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-4);
}

.nx-field--float {
    position: relative;
}
.nx-field--float .nx-input {
    width: 100%;
        padding-top: calc(var(--nx-space-4) + 2px);
    padding-bottom: calc(var(--nx-space-2));
}
.nx-field--float .nx-label {
    position: absolute;
    inset-inline-start: var(--nx-space-4);
    inset-block-start: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
    margin: 0;
    padding: 0 4px;
    color: var(--nx-text-muted);
    font-weight: var(--nx-fw-normal, 400);
    background: var(--nx-surface);
    pointer-events: none;
    transition: transform var(--nx-trans-base), color var(--nx-trans-base),
                inset-block-start var(--nx-trans-base);
}
.nx-field--float .nx-input:focus + .nx-label,
.nx-field--float .nx-input:not(:placeholder-shown) + .nx-label {
    inset-block-start: 0;
    transform: translateY(-50%) scale(0.82);
    color: var(--nx-primary-600);
    font-weight: var(--nx-fw-medium, 500);
}

.auth-shell__links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--nx-space-3);
    font-size: var(--nx-text-sm);
}

.auth-shell__links a {
    color: var(--nx-primary-600);
    text-decoration: none;
    font-weight: var(--nx-fw-medium);
    transition: color var(--nx-trans-base);
}
.auth-shell__links a:hover { color: var(--nx-primary-700); text-decoration: underline; }

.auth-shell__footer {
    text-align: center;
    font-size: var(--nx-text-sm);
    color: var(--nx-text-muted);
    margin-top: var(--nx-space-2);
    padding-top: var(--nx-space-4);
    border-top: 1px solid var(--nx-border);
}
.auth-shell__footer a {
    color: var(--nx-primary-600);
    font-weight: var(--nx-fw-semibold);
    text-decoration: none;
}
.auth-shell__footer a:hover { text-decoration: underline; }

.auth-shell__panel {
    position: relative;
    color: var(--nx-text-on-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nx-space-12);
    background: var(--nx-primary-700);
}

.auth-shell__panel-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.4) 100%),
        var(--nx-primary-700);
    z-index: 0;
}

.auth-shell__panel-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-4);
}

.auth-shell__panel-title {
    font-family: var(--nx-font-display);
    font-size: var(--nx-text-3xl);
    font-weight: var(--nx-fw-bold);
    line-height: 1.15;
    margin: 0;
    color: #fff;
    letter-spacing: -0.01em;
}

.auth-shell__panel-subtitle {
    font-size: var(--nx-text-base);
    line-height: var(--nx-leading-base);
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

@media (max-width: 1023px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-shell__panel {
        display: none;
    }
    .auth-shell__form {
        padding: var(--nx-space-8) var(--nx-space-5);
    }
}

@media (max-width: 480px) {
    .auth-shell__form {
        padding: var(--nx-space-6) var(--nx-space-4);
    }
}
