/* ======================================================
   新外网络 - 认证页面样式（登录/注册/忘记密码）
   左右分栏布局，全屏高度，无滚动
   ====================================================== */

/* ===== 页面容器 ===== */
html, body {
    height: 100%;
}

.bd-auth-page {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

/* ===== 左侧品牌区 ===== */
.bd-auth-brand-side {
    flex: 0 0 55%;
    background: linear-gradient(160deg, #f0f4ff 0%, #e8f0fe 40%, #f5f3ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.bd-auth-brand-side::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.1) 0%, transparent 70%);
    pointer-events: none;
}

.bd-auth-brand-side::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 70%);
    pointer-events: none;
}

.bd-auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.bd-auth-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
}

.bd-auth-brand-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 24px;
}

.bd-auth-brand-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 2px;
}

.bd-auth-brand-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 16px;
}

.bd-auth-brand-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 48px;
}

.bd-auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.bd-auth-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #475569;
    font-size: 15px;
}

.bd-auth-feature-item .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37,99,235,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2563eb;
    flex-shrink: 0;
}

/* ===== 右侧表单区 ===== */
.bd-auth-form-side {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.bd-auth-card {
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
    animation: authCardIn 0.5s ease-out;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bd-auth-header {
    margin-bottom: 32px;
}

.bd-auth-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.bd-auth-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* ===== 表单样式 ===== */
.bd-auth-card .bd-form {
    width: 100%;
}

.bd-auth-card .mb-3 {
    margin-bottom: 20px;
}

.bd-auth-card .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.bd-auth-card .form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: all .25s ease;
    background-color: #f8fafc;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.bd-auth-card .form-control:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.bd-auth-card .form-control::placeholder {
    color: #94a3b8;
}

/* 验证码 */
.bd-auth-card .input-group {
    display: flex;
    gap: 10px;
}

.bd-auth-card .input-group .form-control {
    flex: 1;
}

.bd-auth-card .captcha-img {
    height: 46px;
    border-radius: 10px;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    transition: all .25s ease;
    width: 120px;
    min-width: 120px;
    object-fit: cover;
}

.bd-auth-card .captcha-img:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* 复选框 */
.bd-auth-card .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.bd-auth-card .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
    position: relative;
    z-index: 1;
}

.bd-auth-card .form-check-label {
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

/* 提交按钮 */
.bd-auth-card .bd-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.bd-auth-card .bd-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

.bd-auth-card .bd-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.25);
}

/* 忘记密码 */
.bd-auth-forget {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 16px;
}

.bd-auth-forget a {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.bd-auth-forget a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 底部切换链接 */
.bd-auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

.bd-auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.bd-auth-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 返回首页 */
.bd-auth-back-home {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.bd-auth-back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all .25s ease;
}

.bd-auth-back-home-link:hover {
    background: #e2e8f0;
    color: #374151;
    text-decoration: none;
}

/* ===== 找回密码提示 ===== */
.bd-auth-tip {
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 10px;
    font-size: 14px;
    color: #2563eb;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    .bd-auth-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .bd-auth-brand-side {
        flex: 0 0 auto;
        padding: 40px 24px;
        min-height: auto;
    }

    .bd-auth-brand-title {
        font-size: 24px;
    }

    .bd-auth-brand-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .bd-auth-features {
        display: none;
    }

    .bd-auth-form-side {
        flex: 1;
        padding: 32px 24px;
    }
}

@media (max-width: 575px) {
    .bd-auth-brand-side {
        padding: 32px 20px;
    }

    .bd-auth-brand-logo {
        margin-bottom: 24px;
    }

    .bd-auth-brand-logo .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .bd-auth-brand-logo .logo-text {
        font-size: 22px;
    }

    .bd-auth-brand-title {
        font-size: 20px;
    }

    .bd-auth-form-side {
        padding: 24px 20px;
    }

    .bd-auth-header h3 {
        font-size: 22px;
    }

    .bd-auth-card .form-control {
        height: 42px;
        font-size: 14px;
    }

    .bd-auth-card .bd-btn {
        height: 44px;
        font-size: 15px;
    }

    .bd-auth-back-home {
        top: 10px;
        left: 10px;
    }
}
