/* 前台注册/登录页（双栏卡片） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #e9edf5;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 640px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(30, 60, 120, 0.14);
}

/* ===== 左侧品牌栏 ===== */
.auth-brand {
    position: relative;
    width: 42%;
    padding: 48px 40px 32px;
    background: linear-gradient(170deg, #4472f4 0%, #6b93f9 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.auth-brand::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}
.auth-logo-icon { display: flex; align-items: flex-end; gap: 5px; height: 26px; }
.auth-logo-icon i {
    position: relative;
    display: block;
    width: 9px;
    height: 11px;
    border-radius: 4px 4px 2px 2px;
    background: #9db9ff;
}
.auth-logo-icon i::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -8px;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: #9db9ff;
}
.auth-logo-icon i:nth-child(2) { height: 15px; background: #fff; }
.auth-logo-icon i:nth-child(2)::before { top: -10px; width: 9px; height: 9px; margin-left: -4.5px; background: #fff; }
.auth-brand-title { margin-top: 52px; font-size: 26px; font-weight: 700; }
.auth-brand-sub { margin-top: 28px; font-size: 14px; line-height: 2.1; color: rgba(255, 255, 255, 0.95); }
.auth-brand-points { margin-top: 22px; list-style: none; }
.auth-brand-points li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    line-height: 2.4;
    color: rgba(255, 255, 255, 0.95);
}
.auth-brand-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: #9db9ff;
}
.auth-version { margin-top: auto; padding-top: 30px; font-size: 12px; color: rgba(255, 255, 255, 0.75); }

/* ===== 右侧表单栏 ===== */
.auth-panel {
    flex: 1;
    padding: 48px 56px 28px;
    background: #f7f8fb;
    display: flex;
    flex-direction: column;
}
.auth-title { font-size: 22px; font-weight: 700; color: #17233d; }
.auth-subtitle { margin: 10px 0 26px; font-size: 13px; color: #8a94a6; }

.auth-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.auth-alert-error { background: #fdecea; color: #d63031; }
.auth-alert-success { background: #e6f9f1; color: #00b894; }

.auth-field { margin-bottom: 16px; }
.auth-label { display: block; margin-bottom: 8px; font-size: 13px; color: #333; }
.auth-label .req { color: #e5484d; margin-left: 2px; }
.auth-label .opt { color: #98a1b3; }

.auth-input-wrap { position: relative; }
.auth-input-wrap .input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #a0a8b8;
    pointer-events: none;
}
.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 40px;
    background: #eef1f6;
    border: 1px solid #e2e7f0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.auth-input::placeholder { color: #b3bac7; }
.auth-input:focus { border-color: #4b7bf7; background: #fff; }
.auth-input.has-eye { padding-right: 44px; }

.pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    background: none;
    border: none;
    color: #8a94a6;
    cursor: pointer;
}
.pwd-toggle:hover { color: #4b7bf7; }

/* ===== 滑动验证 ===== */
.auth-slider-track {
    position: relative;
    height: 44px;
    background: #eef1f6;
    border: 1px solid #e2e7f0;
    border-radius: 8px;
    user-select: none;
    overflow: hidden;
}
.auth-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(75, 123, 247, 0.15);
}
.auth-slider-text {
    position: absolute;
    inset: 0;
    text-align: center;
    line-height: 42px;
    font-size: 12px;
    color: #b3bac7;
    pointer-events: none;
}
.auth-slider-target {
    position: absolute;
    top: 3px;
    width: 44px;
    height: 36px;
    border: 2px dashed #c6cdd9;
    border-radius: 6px;
}
.auth-slider-target.success { border-color: #00b894; }
.auth-slider-target.fail { border-color: #d63031; }
.auth-slider-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e7f0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    color: #666;
    cursor: grab;
}
.auth-slider-handle.success { background: #00b894; border-color: #00b894; color: #fff; }

/* ===== 按钮/链接/页脚 ===== */
.auth-submit {
    margin-top: 24px;
    width: 100%;
    height: 46px;
    background: #4b7bf7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 8px;
    text-indent: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.auth-submit:hover:not(:disabled) { background: #3566e0; }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-links { margin-top: 18px; text-align: center; font-size: 13px; color: #666; }
.auth-links a { color: #4b7bf7; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-row { margin-top: 18px; display: flex; justify-content: space-between; font-size: 13px; }
.auth-row a { color: #4b7bf7; text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }

.auth-footer {
    margin-top: auto;
    padding-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #98a1b3;
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .auth-card { flex-direction: column; min-height: 0; }
    .auth-brand { width: 100%; padding: 32px 28px 24px; }
    .auth-brand-title { margin-top: 24px; }
    .auth-brand-sub { margin-top: 12px; }
    .auth-brand-points { margin-top: 10px; }
    .auth-version { display: none; }
    .auth-panel { padding: 32px 24px 20px; }
}
