/* ============================================================
 * 认证页公共样式（登录 / 注册）
 * 左右双栏布局：左侧价值主张 + 右侧表单
 * ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #f5f7fa;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* ── 页面容器 ── */
.auth-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── 左侧价值主张区 ── */
.auth-hero {
    flex: 1;
    background: linear-gradient(135deg, #1a56db 0%, #1e40af 50%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 40px;
}

.auth-benefits {
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    color: rgba(255,255,255,.9);
    line-height: 1.5;
}

.benefit-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    margin-top: 1px;
}

/* ── 右侧表单区 ── */
.auth-form-side {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    background: #fff;
}

/* 品牌区 */
.auth-brand {
    margin-bottom: 24px;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-brand-logo img {
    height: 36px;
    width: auto;
}

.auth-brand-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1a56db;
}

/* 卡片 */
.auth-card {
    width: 100%;
    max-width: 360px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 28px;
}

.auth-subtitle a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 500;
}

.auth-subtitle a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* 表单 */
.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #bbb;
    pointer-events: none;
    transition: color .2s;
}

.auth-input-wrap .auth-input-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #bbb;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
    outline: none;
}

.auth-eye-toggle:hover {
    color: #1a56db;
}

.auth-eye-toggle svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafbfc;
    font-size: 14px;
    color: #333;
    transition: all .2s;
    outline: none;
}

.auth-input::placeholder {
    color: #bbb;
}

.auth-input:focus {
    border-color: #1a56db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,86,219,.08);
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #1a56db;
}

/* 服务条款 */
.auth-agreement {
    margin-bottom: 20px;
    font-size: 12px;
    color: #999;
}

.auth-agreement label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.auth-agreement input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #1a56db;
}

.auth-agreement a {
    color: #1a56db;
    text-decoration: none;
}

.auth-agreement a:hover {
    text-decoration: underline;
}

/* 按钮 */
.auth-submit {
    width: 100%;
    height: 44px;
    margin-top: 4px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: 2px;
}

.auth-submit:hover {
    background: #b91c1c;
}

.auth-submit:active {
    background: #991b1b;
}

.auth-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* 底部链接 */
.auth-back {
    margin-top: 24px;
}

.auth-back a {
    font-size: 12px;
    color: #bbb;
    text-decoration: none;
    transition: color .15s;
}

.auth-back a:hover {
    color: #1a56db;
}

/* 入场动画 */
@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-hero-content { animation: authSlideUp .6s ease both; }
.auth-card { animation: authSlideUp .5s ease .15s both; }

/* ── 演示提示条 ── */
.demo-hint {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ── 移动端适配 ── */
@media (max-width: 768px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-hero {
        padding: 32px 24px;
        min-height: auto;
    }

    .auth-hero-content h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .auth-benefits li {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .auth-form-side {
        width: 100%;
        padding: 32px 24px;
    }

    .auth-card {
        max-width: 100%;
    }
}
