/**
 * 认证页样式（登录 / 注册 / 找回密码）
 *
 * 版式：整屏居中 → 一块面板，左边控制台风格的信息面，右边表单。
 * 窄屏时左侧隐藏，只留表单。
 */

.bs-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.bs-auth-shell {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1.06fr;
    background: var(--bs-surface);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(24, 42, 72, .05), 0 26px 60px -26px rgba(24, 42, 72, .4);
    overflow: hidden;
    animation: bs-rise .55s var(--bs-ease) both;
}

/* ══════════════ 左侧信息面 ══════════════ */

/* 左侧：整块蓝底面板，配白字 —— 蓝白灰里的「蓝」主要靠这里撑起来 */
.bs-auth-aside {
    position: relative;
    padding: 44px 38px;
    color: #fff;
    background: linear-gradient(155deg, #5b95f6 0%, #3b7ef0 48%, #2563d4 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 一层柔光，避免纯渐变太死板 */
.bs-auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(340px 220px at 18% 8%, rgba(255, 255, 255, .22), transparent 62%),
        radial-gradient(300px 220px at 92% 88%, rgba(255, 255, 255, .14), transparent 60%);
    pointer-events: none;
}

.bs-auth-aside__inner { position: relative; z-index: 1; width: 100%; }

.bs-auth-aside__brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; letter-spacing: 1.5px;
    margin-bottom: 28px;
    color: #fff;
}
/* 蓝底上的品牌图标改成白底蓝字，否则蓝底压蓝标等于看不见 */
.bs-auth-aside__brand .bs-brand__mark {
    background: rgba(255, 255, 255, .95);
    color: var(--bs-primary-600);
    box-shadow: 0 6px 16px -6px rgba(16, 42, 90, .5);
}

.bs-auth-aside__title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .5px;
    color: #fff;
}
.bs-auth-aside__desc { margin: 0; font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .92); }

.bs-auth-aside__art { margin: 20px 0 16px; }
.bs-auth-aside__art svg { filter: drop-shadow(0 8px 16px rgba(37, 99, 212, .16)); }

.bs-auth-aside__points { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 2.15; color: rgba(255, 255, 255, .94); }
.bs-auth-aside__points i { margin-right: 7px; color: #fff; }

/* ══════════════ 右侧表单区 ══════════════ */

.bs-auth-main {
    padding: 44px 44px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bs-surface);
}

.bs-auth-card__brand {
    display: none; /* 只在窄屏显示（左侧面板消失后需要品牌标识） */
    align-items: center; gap: 10px;
    font-weight: 800; font-size: 18px; color: var(--bs-text);
    margin-bottom: 22px;
}

.bs-auth-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--bs-text); letter-spacing: .5px; }
.bs-auth-subtitle { margin: 0 0 26px; font-size: 13.5px; color: var(--bs-text-3); }

/* 登录方式切换（密码 / 验证码） */
.bs-auth-tabs {
    display: flex; gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    background: var(--bs-surface-3);
    border-radius: 8px;
}
.bs-auth-tabs__item {
    flex: 1 1 0;
    text-align: center;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13.5px; font-weight: 700;
    color: var(--bs-text-3);
    cursor: pointer;
    border: 0; background: transparent; font-family: inherit;
    transition: all var(--bs-dur) var(--bs-ease);
}
.bs-auth-tabs__item:hover { color: var(--bs-primary-500); }
.bs-auth-tabs__item.is-active {
    color: #ffffff;
    background: var(--bs-grad);
    box-shadow: var(--bs-glow);
}

/* 表单里的附加行（记住我 / 忘记密码） */
.bs-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }

/* 底部链接行 */
.bs-auth-links {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed var(--bs-line-strong);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}

.bs-auth-foot {
    margin-top: 18px;
    display: flex; align-items: center; justify-content: center;
}

/* 验证码按钮的倒计时态 */
.bs-btn.is-counting { color: var(--bs-text-3); background: var(--bs-surface-3); border-color: transparent; box-shadow: none; }

/* ══════════════ 响应式 ══════════════ */

@media (max-width: 899px) {
    .bs-auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 480px; border-radius: 14px; }
    .bs-auth-aside { display: none; }
    .bs-auth-card__brand { display: inline-flex; }
    .bs-auth-main { padding: 32px 24px 24px; }
}

@media (max-width: 460px) {
    .bs-auth-page { padding: 18px 12px; }
    .bs-auth-main { padding: 26px 18px 20px; }
    .bs-auth-title { font-size: 21px; }
    .bs-input-group { flex-wrap: nowrap; }
    .bs-input-group .bs-btn { width: auto; padding-left: 15px; padding-right: 15px; }
}
