﻿.nexo-auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--surface-soft);
}

.nexo-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(480px, 1.15fr);
}

.nexo-auth-brand-panel {
    position: relative;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: radial-gradient( circle at 85% 12%, rgba(176, 141, 87, 0.28), transparent 30% ), radial-gradient( circle at 5% 92%, rgba(176, 141, 87, 0.16), transparent 32% ), linear-gradient( 145deg, var(--brand-primary-dark), var(--brand-primary) );
    color: var(--text-on-dark);
}

.nexo-auth-decoration {
    position: absolute;
    width: 360px;
    height: 360px;
    right: -190px;
    bottom: 8%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

    .nexo-auth-decoration::before,
    .nexo-auth-decoration::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 50%;
    }

    .nexo-auth-decoration::before {
        inset: 48px;
    }

    .nexo-auth-decoration::after {
        inset: 96px;
    }

.nexo-auth-brand-panel__content,
.nexo-auth-brand-panel__footer {
    position: relative;
    z-index: 1;
}

.nexo-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-on-dark);
    text-decoration: none;
}

    .nexo-auth-brand:hover {
        color: var(--text-on-dark);
        text-decoration: none;
    }

.nexo-auth-brand__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

    .nexo-auth-brand__icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.nexo-auth-brand__copy {
    display: flex;
    flex-direction: column;
}

    .nexo-auth-brand__copy strong {
        color: var(--text-on-dark);
        font-family: var(--font-display);
        font-size: 1.3rem;
        line-height: 1.15;
    }

    .nexo-auth-brand__copy small {
        margin-top: 0.2rem;
        color: rgba(255, 255, 255, 0.68);
        font-size: var(--font-size-xs);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

.nexo-auth-presentation {
    max-width: 580px;
    margin-top: clamp(4rem, 12vh, 8rem);
}

.nexo-auth-presentation__eyebrow {
    margin: 0 0 var(--space-3);
    color: #d9bd91;
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nexo-auth-presentation__title {
    max-width: 560px;
    margin: 0;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    line-height: 1.06;
}

.nexo-auth-presentation__description {
    max-width: 520px;
    margin: var(--space-5) 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: var(--font-size-base);
    line-height: 1.75;
}

.nexo-auth-benefits {
    margin: var(--space-7) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
    list-style: none;
}

    .nexo-auth-benefits li {
        position: relative;
        padding-left: 1.75rem;
        color: rgba(255, 255, 255, 0.82);
        font-size: var(--font-size-sm);
    }

        .nexo-auth-benefits li::before {
            content: "";
            position: absolute;
            width: 9px;
            height: 9px;
            left: 0;
            top: 0.38rem;
            border-radius: 50%;
            background: var(--brand-secondary);
            box-shadow: 0 0 0 5px rgba(176, 141, 87, 0.14);
        }

.nexo-auth-brand-panel__footer {
    margin: var(--space-8) 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: var(--font-size-xs);
}

.nexo-auth-main {
    min-width: 0;
    min-height: 100vh;
    padding: clamp(1.5rem, 5vw, 4.5rem);
    display: grid;
    place-items: center;
    background: radial-gradient( circle at 100% 0, rgba(176, 141, 87, 0.12), transparent 30% ), var(--surface-soft);
}

.nexo-auth-main__inner {
    width: min(100%, 520px);
}

.nexo-auth-card {
    width: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
}

.nexo-auth-card__header {
    margin-bottom: var(--space-7);
}

.nexo-auth-card__eyebrow {
    margin: 0 0 var(--space-2);
    color: var(--brand-secondary-dark);
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nexo-auth-card__title {
    margin: 0;
    color: var(--brand-primary);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.45rem);
}

.nexo-auth-card__description {
    margin: var(--space-3) 0 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

.nexo-auth-form {
    display: grid;
    gap: var(--space-5);
}

.nexo-auth-form__actions {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.nexo-auth-validation {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border: 1px solid rgba(168, 68, 68, 0.24);
    border-radius: var(--radius-md);
    background: var(--color-danger-soft);
    color: var(--color-danger);
    font-size: var(--font-size-sm);
}

    .nexo-auth-validation:empty,
    .nexo-auth-validation.validation-summary-valid {
        display: none;
    }

    .nexo-auth-validation ul {
        margin: 0;
        padding-left: 1.15rem;
    }

.nexo-auth-help {
    margin: var(--space-5) 0 0;
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    line-height: 1.65;
    text-align: center;
}

.nexo-auth-password-rules {
    margin: var(--space-3) 0 0;
    padding: var(--space-4);
    display: grid;
    gap: var(--space-2);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    list-style: none;
}

    .nexo-auth-password-rules li {
        position: relative;
        padding-left: 1.2rem;
    }

        .nexo-auth-password-rules li::before {
            content: "•";
            position: absolute;
            left: 0.25rem;
            color: var(--brand-secondary-dark);
            font-weight: 800;
        }

.nexo-auth-footer {
    margin-top: var(--space-5);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    text-align: center;
}

.nexo-auth-submit {
    width: 100%;
    justify-content: center;
}

.nexo-auth-secondary-form {
    margin-top: var(--space-4);
}

    .nexo-auth-secondary-form .nexo-btn {
        width: 100%;
        justify-content: center;
    }

.nexo-auth-session-note {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border: 1px solid rgba(176, 141, 87, 0.22);
    border-radius: var(--radius-md);
    background: rgba(176, 141, 87, 0.08);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.65;
}

    .nexo-auth-session-note strong {
        color: var(--brand-primary);
    }

@media (max-width: 991.98px) {
    .nexo-auth-page {
        grid-template-columns: 1fr;
    }

    .nexo-auth-brand-panel {
        min-height: auto;
        padding: var(--space-6);
    }

    .nexo-auth-presentation {
        margin-top: var(--space-7);
    }

    .nexo-auth-presentation__title {
        max-width: 700px;
        font-size: clamp(2rem, 6vw, 3.25rem);
    }

    .nexo-auth-benefits,
    .nexo-auth-brand-panel__footer {
        display: none;
    }

    .nexo-auth-main {
        min-height: auto;
        padding: var(--space-7) var(--space-5);
    }
}

@media (max-width: 575.98px) {
    .nexo-auth-brand-panel {
        padding: var(--space-5);
    }

    .nexo-auth-brand__icon {
        width: 50px;
        height: 50px;
    }

    .nexo-auth-presentation {
        margin-top: var(--space-6);
    }

    .nexo-auth-presentation__description {
        display: none;
    }

    .nexo-auth-main {
        padding: var(--space-5) var(--space-4);
    }

    .nexo-auth-card {
        padding: var(--space-6) var(--space-5);
        border-radius: var(--radius-lg);
    }
}
