/* 登录/注册页 - 与主站风格一致，自适应布局 */

.auth-page {
    min-height: 100vh;
    display: flex;
}

.auth-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* 左侧介绍区 - PC 显示，移动端隐藏或折叠 */
.auth-intro {
    flex: 1;
    min-width: 0;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--neon-blue);
    text-decoration: none;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.auth-brand:hover {
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
    color: var(--neon-cyan);
}

.auth-intro-title {
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.4;
    margin: 0 0 20px;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.auth-intro-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.auth-intro-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-intro-features li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-intro-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-weight: 700;
}

/* 左侧背景装饰 */
.auth-intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 50%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.auth-intro-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

/* 右侧表单区 */
.auth-main {
    flex: 0 0 auto;
    width: 440px;
    max-width: 100%;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}

.auth-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.auth-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.auth-nav a:hover {
    color: var(--neon-blue);
}

.auth-nav-links a {
    margin-left: 20px;
}

.auth-nav-links a.active {
    color: var(--neon-blue);
    font-weight: 600;
}

.auth-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.auth-form-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.auth-form-error {
    padding: 12px 16px;
    margin-bottom: 20px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 14px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-primary);
    background: rgba(37, 43, 69, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input::placeholder {
    color: var(--text-muted);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #0a0e27;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

.auth-form-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-form-switch a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-form-switch a:hover {
    text-decoration: underline;
}

/* 自适应：平板及以下 */
@media (max-width: 900px) {
    .auth-layout {
        flex-direction: column;
    }

    .auth-intro {
        padding: 32px 24px 24px;
        min-height: auto;
    }

    .auth-brand {
        margin-bottom: 20px;
    }

    .auth-intro-title {
        font-size: 20px;
    }

    .auth-intro-desc {
        margin-bottom: 20px;
    }

    .auth-intro-features {
        margin-bottom: 24px;
    }

    .auth-main {
        width: 100%;
        flex: 1;
        padding: 24px;
        border-left: none;
        border-top: 1px solid rgba(0, 212, 255, 0.15);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    }

    .auth-form-wrap {
        justify-content: flex-start;
    }
}

/* 移动端 */
@media (max-width: 480px) {
    .auth-intro {
        padding: 24px 20px 20px;
    }

    .auth-intro-title {
        font-size: 18px;
    }

    .auth-intro-desc {
        font-size: 14px;
    }

    .auth-intro-features li {
        font-size: 13px;
    }

    .auth-main {
        padding: 20px;
    }

    .auth-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
    }

    .auth-nav-links a {
        margin-left: 0;
        margin-right: 16px;
    }

    .auth-form input,
    .auth-btn {
        padding: 12px 14px;
    }
}
