/*
 * 卡乐售 - bili 模板（PC 端）登录 / 注册（独立全屏页样式）
 * 观感：浅灰底 + 居中白卡 + 顶部小电视吉祥物；标签页用 B 站式大字号 + 粉色下划线，
 * 输入框浅灰内嵌、聚焦粉描边，主按钮粉色渐变
 */

:root {
    --bi-pink: #fb7299;
    --bi-pink-dark: #f25d8e;
    --bi-pink-soft: #fff0f5;
    --bi-blue: #00aeec;
    --bi-text: #18191c;
    --bi-text-2: #61666d;
    --bi-text-3: #9499a0;
    --bi-bg: #f1f2f7;
    --bi-line: #e7e8eb;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    background:
        radial-gradient(50% 40% at 12% 6%, rgba(251, 114, 153, .14), transparent 70%),
        radial-gradient(45% 40% at 90% 10%, rgba(0, 174, 236, .12), transparent 70%),
        var(--bi-bg);
    color: var(--bi-text);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 32px;
}
a { color: inherit; text-decoration: none; }

.bi-auth-top { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.bi-auth-top .tv { display: inline-flex; width: 46px; }
.bi-auth-top .tv svg { width: 100%; height: auto; }
.bi-auth-top .name { font-size: 22px; font-weight: 700; color: var(--bi-pink); letter-spacing: .5px; }
.bi-auth-top .name a { color: inherit; }

.bi-auth { width: 400px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(15, 23, 42, .10); overflow: hidden; }
.bi-auth-tabs { display: flex; border-bottom: 1px solid var(--bi-line); }
.bi-auth-tabs a { position: relative; flex: 1; text-align: center; padding: 18px 0 15px; font-size: 17px; color: var(--bi-text-2); transition: color .2s; }
.bi-auth-tabs a::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 46px; height: 3px; border-radius: 2px; background: var(--bi-pink); transform: translateX(-50%) scaleX(0); transition: transform .22s; }
.bi-auth-tabs a:hover { color: var(--bi-pink); }
.bi-auth-tabs a.on { color: var(--bi-pink); font-weight: 700; }
.bi-auth-tabs a.on::after { transform: translateX(-50%) scaleX(1); }

.bi-auth-body { padding: 24px 28px 28px; }

/* 提示条 */
.bi-auth-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.bi-auth-alert.err { background: #fef0f0; color: #d03050; border: 1px solid #fde2e2; }
.bi-auth-alert.ok { background: #f0f9eb; color: #529b2e; border: 1px solid #e1f3d8; }

/* 表单 */
.login-row { margin-bottom: 16px; position: relative; }
.login-row p { margin: 4px 0 0; font-size: 12px; color: #d03050; min-height: 0; }
.login-input {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1px solid transparent; border-radius: 10px; background: var(--bi-bg);
    font-size: 14px; color: var(--bi-text); outline: none; font-family: inherit;
    transition: background .18s, border-color .18s, box-shadow .18s;
}
.login-input::placeholder { color: var(--bi-text-3); }
.login-input:focus { background: #fff; border-color: var(--bi-pink); box-shadow: 0 0 0 3px rgba(251, 114, 153, .12); }

/* 验证码行：输入框 + 图片并排 */
.login-row.codeimg { display: flex; align-items: center; gap: 10px; }
.login-row.codeimg .login-input { flex: 1 1 auto; min-width: 0; }
.login-row.codeimg img { flex: 0 0 104px; width: 104px; height: 40px; border-radius: 8px; background: var(--bi-bg); cursor: pointer; object-fit: cover; }
.login-row.codeimg p { display: none; }

.login-but {
    width: 100%; height: 44px; margin-top: 4px; border: 0; border-radius: 22px;
    background: linear-gradient(90deg, #fb7299, #ff9db8); color: #fff;
    font-size: 15.5px; font-weight: 600; letter-spacing: 2px; transition: filter .18s, transform .18s;
}
.login-but:hover { filter: brightness(1.05); transform: translateY(-1px); }

.login-link { margin-top: 14px; text-align: center; font-size: 13px; color: var(--bi-text-3); }
.login-link a { color: var(--bi-pink); }
.login-link a:hover { text-decoration: underline; }

/* 邀请提示 */
.bi-auth-invite { margin: -4px 0 16px; padding: 9px 12px; border-radius: 8px; background: var(--bi-pink-soft); color: #a04a68; font-size: 12.5px; }

/* 第三方登录 */
.auth-other { margin-top: 22px; text-align: center; }
.auth-other .auth-other-tit { font-size: 12.5px; color: var(--bi-text-3); display: flex; align-items: center; gap: 14px; justify-content: center; }
.auth-other .auth-other-tit::before, .auth-other .auth-other-tit::after { content: ""; flex: 1; max-width: 84px; height: 1px; background: var(--bi-line); }
.auth-other .auth-other-btns { display: flex; gap: 16px; justify-content: center; margin-top: 14px; }
.auth-other .auth-other-btn { width: 42px; height: 42px; border: 1px solid var(--bi-line); border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.auth-other .auth-other-btn:hover { border-color: var(--bi-pink); box-shadow: 0 4px 12px rgba(251, 114, 153, .18); transform: translateY(-2px); }
.auth-other .auth-other-btn svg { width: 22px; height: 22px; }

.bi-auth-foot { margin-top: 22px; font-size: 12px; color: var(--bi-text-3); text-align: center; }
.bi-auth-foot a:hover { color: var(--bi-pink); }

@media (max-width: 480px) {
    body { padding: 26px 14px; }
    .bi-auth-body { padding: 20px 18px 24px; }
}
