/* ==========================================================================
   NEXO · Páginas de autenticación (login, forgot_password, terms)
   Diseño propio y autocontenido (no depende del tema).
   ========================================================================== */
:root {
    --nx-primary: #111827;
    --nx-accent: #016d98;
    --nx-text: #1f2733;
    --nx-muted: #6b7280;
    --nx-border: #e6e9f2;
    --nx-border-strong: #d5dbe8;
    --nx-bg: #f4f6fb;
    --nx-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body.nx-auth-body { height: 100%; }
body.nx-auth-body {
    margin: 0;
    font-family: var(--nx-font);
    color: var(--nx-text);
    background: var(--nx-bg);
    -webkit-font-smoothing: antialiased;
}

.nx-auth { display: flex; min-height: 100vh; }

/* Panel de marca (izquierda) */
.nx-auth__brand {
    position: relative;
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1220 0%, #1f2937 55%, #374151 100%);
}
.nx-auth__brand-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .22;
    transition: opacity .6s ease;
}
.nx-auth__brand-inner { position: relative; z-index: 2; max-width: 520px; }
.nx-auth__logo { height: 54px; margin-bottom: 32px; }
.nx-auth__brand-name { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.nx-auth__headline { font-size: 1.15rem; font-weight: 600; color: rgba(255, 255, 255, .92); margin: 0 0 8px; }
.nx-auth__sub { color: rgba(255, 255, 255, .68); font-size: .92rem; line-height: 1.5; margin: 0; }

/* Panel de formulario (derecha) */
.nx-auth__form {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--nx-bg);
}
.nx-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, .12);
    padding: 32px;
}
.nx-card.wide { max-width: 720px; }
.nx-card__logo { display: block; margin: 0 auto 18px; height: 60px; }
.nx-card__brandtext { text-align: center; font-weight: 800; font-size: 1.3rem; color: var(--nx-primary); margin: 0 0 18px; }
.nx-card h1 { font-size: 1.4rem; font-weight: 800; text-align: center; margin: 0 0 6px; letter-spacing: -.02em; }
.nx-card__sub { text-align: center; color: var(--nx-muted); font-size: .9rem; margin: 0 0 22px; }

.nx-field { margin-bottom: 14px; }
.nx-field label { font-size: .78rem; font-weight: 600; color: #334155; display: block; margin-bottom: 6px; }
.nx-input {
    width: 100%;
    border: 1px solid var(--nx-border-strong);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--nx-text);
    outline: none;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nx-input:focus { border-color: var(--nx-primary); box-shadow: 0 0 0 3px rgba(17, 24, 39, .12); }
.nx-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 13px 16px;
    background: var(--nx-primary);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background-color .15s ease;
}
.nx-btn:hover { background: #000; }
.nx-btn--accent { background: var(--nx-accent); }
.nx-btn--accent:hover { background: #015a7d; }

.nx-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: .85rem; flex-wrap: wrap; }
.nx-links a { color: var(--nx-accent); text-decoration: none; font-weight: 500; }
.nx-links a:hover { text-decoration: underline; }
.nx-center-link { text-align: center; margin-top: 18px; }
.nx-center-link a { color: var(--nx-accent); text-decoration: none; }
a.nx-btn, .nx-center-link a.nx-btn { color: #fff !important; }

.nx-alert { border-radius: 10px; padding: 10px 12px; font-size: .85rem; margin-bottom: 14px; }
.nx-alert--danger { background: #fdeef1; color: #b3123a; border: 1px solid #f8c9d4; }
.nx-alert--success { background: #e9f9ef; color: #15803d; border: 1px solid #bfe8cf; }

.nx-social { text-align: center; margin-top: 20px; }
.nx-social .nx-or { color: var(--nx-muted); font-size: .8rem; margin-bottom: 10px; }
.nx-social a { display: inline-flex; align-items: center; gap: 7px; margin: 0 8px; color: #374151; text-decoration: none; font-size: .88rem; font-weight: 600; }
.nx-social a:hover { color: var(--nx-primary); }

/* Contenido largo (terms) */
.nx-prose { color: var(--nx-text); font-size: .93rem; line-height: 1.65; }
.nx-prose h1, .nx-prose h2, .nx-prose h3 { color: var(--nx-primary); font-weight: 700; }
.nx-prose a { color: var(--nx-accent); }
.nx-prose hr { border: 0; border-top: 1px solid var(--nx-border); margin: 18px 0; }

.nx-auth__center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(135deg, #0b1220 0%, #1f2937 55%, #374151 100%);
}

@media (max-width: 900px) {
    .nx-auth__brand { display: none; }
    .nx-auth__form { flex: 1 1 100%; }
    .nx-card { box-shadow: none; border: 0; background: transparent; padding: 8px; }
    .nx-auth__center { background: var(--nx-bg); }
    .nx-card.wide { background: transparent; }
}
