/* 登录 / 注册页（参照 reference/login_demo.html） */
:root {
    --auth-primary: #1e40af;
    --auth-secondary: #3b82f6;
}

/* 嵌入 base 的登录壳与独立 auth_base 页共用字体与背景 */
.auth-page-shell,
body.auth-body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #1e3a8a;
    background-image:
        linear-gradient(rgba(30, 64, 175, 0.82), rgba(59, 130, 246, 0.78)),
        url('../images/bg_7.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 全站布局下的登录/注册主区域（含顶栏、页脚）— 紧凑高度与间距 */
/* 与 base.html 中 main.flex-grow-1 配合：铺满主区域高度；背景与首页英雄区同为 bg_7 + 蓝色叠层 */
.auth-page-shell {
    padding: 0.65rem 0 0.85rem;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.auth-page-shell > .container {
    padding-left: 12px;
    padding-right: 12px;
    flex-shrink: 0;
}

.auth-page-shell .auth-outer {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.auth-page-shell .login-left,
.auth-page-shell .login-right {
    padding: 28px 24px;
}

/* 左列：标题 → 副标题 → 列表 间距（登录/注册共用） */
.auth-page-shell .login-left .auth-left-title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.auth-page-shell .login-left .auth-left-lead {
    margin: 0 0 1.35rem;
    font-size: 0.98rem;
    line-height: 1.55;
    opacity: 0.95;
}

.auth-page-shell .login-left .auth-left-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-page-shell .login-right > h3 {
    margin-bottom: 0.55rem !important;
    font-size: 1.2rem;
}

.auth-page-shell .feature-list li {
    margin-bottom: 0.65rem;
}

.auth-page-shell .feature-list li:last-child {
    margin-bottom: 0;
}

.auth-page-shell .feature-list .feature-icon {
    width: 26px;
    height: 26px;
    margin-right: 10px;
    font-size: 0.8rem;
}

.auth-page-shell .auth-back-home {
    margin-top: 1.2rem;
    padding-top: 0.25rem;
    font-size: 0.85rem;
}

.auth-page-shell .login-right .mb-3 {
    margin-bottom: 0.6rem !important;
}

.auth-page-shell .login-right .form-check.mb-3 {
    margin-bottom: 0.45rem !important;
}

.auth-page-shell .login-right .form-control,
.auth-page-shell .login-right input[type='email'],
.auth-page-shell .login-right input[type='password'],
.auth-page-shell .login-right input[type='text'] {
    padding: 9px 13px;
    font-size: 0.95rem;
}

.auth-page-shell .login-right small.text-muted {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    line-height: 1.35;
}

.auth-page-shell .btn-login {
    padding: 9px 12px;
    font-size: 0.95rem;
}

.auth-page-shell .btn-login.mb-3 {
    margin-bottom: 0.45rem !important;
}

.auth-page-shell .login-right .text-center.mb-3 {
    margin-bottom: 0.4rem !important;
}

.auth-page-shell .login-right .text-center.mt-4 {
    margin-top: 0.65rem !important;
}

.auth-page-shell .login-container {
    border-radius: 16px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}

@media (max-width: 991.98px) {
    .auth-page-shell {
        padding: 0.75rem 0;
    }
}

/* 密码重置等独立页（auth_base.html）仍用全屏 body */
body.auth-body {
    margin: 0;
    min-height: 100vh;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-outer {
    width: 100%;
    max-width: 900px;
}

.login-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
}

.login-left {
    background-color: var(--auth-primary);
    background-image: linear-gradient(160deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
    padding: 48px 36px;
    color: #fff;
    min-height: 100%;
}

/* 注册页左列：与登录区分的绿色系（纯色，性能友好） */
.login-left.login-left--signup {
    background-color: #059669;
    background-image: none;
}

.login-right {
    padding: 48px 36px;
}

.login-right .form-control,
.login-right input[type='email'],
.login-right input[type='password'],
.login-right input[type='text'] {
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
}

.login-right .form-control:focus,
.login-right input:focus {
    border-color: var(--auth-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-login {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    color: #fff;
    width: 100%;
}

.btn-login:hover {
    opacity: 0.92;
    color: #fff;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-list .feature-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.auth-back-home {
    display: inline-block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-back-home:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-alert {
    border-radius: 10px;
}

@media (max-width: 767.98px) {
    .login-left,
    .login-right {
        padding: 28px 20px;
    }

    .auth-page-shell .login-left,
    .auth-page-shell .login-right {
        padding: 20px 16px;
    }
}
