/*!
 * NXFRP 清爽蓝主题 · 认证页（登录 / 注册 / 找回密码）共享样式
 * 左右分栏：品牌区（抽象几何装饰）+ 表单卡片；移动端单列
 */

.nx-auth {
    display: flex;
    min-height: 100vh;
    background: var(--bg-page);
}

/* ---------- 品牌侧 ---------- */
.nx-auth__brand {
    position: relative;
    display: none;
    flex: 0 0 46%;
    max-width: 560px;
    overflow: hidden;
    background: #1e293b;
    color: #eaf1ff;
    padding: 48px;
    flex-direction: column;
}

.nx-auth__brand-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nx-auth__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nx-auth__logo img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.nx-auth__logo b {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -.01em;
}

.nx-auth__headline {
    margin-top: auto;
    margin-bottom: 28px;
}

.nx-auth__headline h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: -.02em;
    margin: 0 0 12px;
}

.nx-auth__headline p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(234, 241, 255, .72);
    margin: 0;
    max-width: 380px;
}

.nx-auth__points {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nx-auth__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(234, 241, 255, .86);
}

.nx-auth__points .nx-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(22, 119, 255, .22);
    color: #7db2ff;
    flex-shrink: 0;
}

.nx-auth__foot {
    font-size: 12px;
    color: rgba(234, 241, 255, .45);
}

/* 抽象几何装饰（低透明度线条与光斑） */
.nx-auth__deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.nx-auth__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 119, 255, .38) 0%, rgba(22, 119, 255, 0) 68%);
    filter: blur(6px);
}

.nx-auth__glow--a {
    top: -140px;
    right: -120px;
}

.nx-auth__glow--b {
    bottom: -180px;
    left: -140px;
    background: radial-gradient(circle, rgba(8, 145, 178, .32) 0%, rgba(8, 145, 178, 0) 70%);
}

.nx-auth__deco svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
}

/* ---------- 表单侧 ---------- */
.nx-auth__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.nx-auth__card {
    width: 100%;
    max-width: 420px;
}

.nx-auth__mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    text-decoration: none;
}

.nx-auth__mobile-logo img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.nx-auth__mobile-logo b {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-strong);
}

.nx-auth__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -.02em;
    margin-bottom: 6px;
    text-align: center;
}

.nx-auth__subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 26px;
}

.nx-auth__panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
}

.nx-auth__links {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.nx-auth__links a {
    font-weight: 500;
}

.nx-auth__back {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
}

.nx-auth__back a {
    color: var(--text-muted);
}

.nx-auth__back a:hover {
    color: var(--brand);
}

/* 输入框前置图标 */
.nx-field {
    position: relative;
}

.nx-field > .nx-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
    z-index: 2;
}

.nx-field .form-control {
    padding-left: 38px;
}

.nx-field--has-btn .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* 输入组：验证码按钮 */
.nx-auth__panel .input-group > .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nx-auth__panel .input-group > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.nx-auth__panel .input-group > .nx-field {
    flex: 1;
}

.nx-auth__panel .input-group > .nx-field .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* 密码可见性切换 */
.nx-field__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-faint);
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1;
}

.nx-field__toggle:hover {
    color: var(--text-body);
    background: var(--bg-hover);
}

.nx-field--has-toggle .form-control {
    padding-right: 38px;
}

/* 反馈文本 */
.nx-feedback {
    margin-top: 6px;
    font-size: 12px;
    min-height: 16px;
}

.nx-feedback--ok {
    color: var(--success);
}

.nx-feedback--err {
    color: var(--danger);
}

@media (min-width: 992px) {
    .nx-auth__brand {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    .nx-auth__panel {
        box-shadow: none;
        padding: 24px 20px;
    }
}