/* ========== 全局重置（只写一遍） ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ========== 全屏背景视频 ========== */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* ========== 顶部导航栏 ========== */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 48px;
    gap: 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.page a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s;
}

.page a:hover {
    opacity: 0.7;
}

/* ========== 登录容器：右侧垂直居中（效仿DeepSeek布局） ========== */
.login-wrap {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 120px;
}

/* ========== 登录卡片（核心：白色磨砂卡片） ========== */
.login-card {
    width: 420px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: cardFadeIn 0.6s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 32px;
}

/* ========== 登录/注册 切换标签 ========== */
.tab-group {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-item.active {
    color: #2563eb;
    font-weight: 500;
}

.tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
    animation: underlineSlide 0.3s ease-out;
}

@keyframes underlineSlide {
    from { width: 0; }
    to { width: 32px; }
}

/* ========== 表单面板显示/隐藏 ========== */
.form-panel {
    display: none;
}

.form-panel.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 表单项 & 输入框 ========== */
.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-item input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    outline: none;
    transition: all 0.25s ease;
}

.form-item input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-item input::placeholder {
    color: #9ca3af;
}

/* ========== 提交按钮 ========== */
.submit-btn {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========== 底部提示文字 ========== */
.tip-text {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 20px;
}

/* ========== 隐私政策和用户协议链接 ========== */
.policy-links {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 12px;
}

.policy-links a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.25s ease;
}

.policy-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.policy-links span {
    margin: 0 8px;
    color: #d1d5db;
}

/* ========== 协议勾选框样式 ========== */
.agreement-item {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 8px;
    /* margin-top: 2px; */
    vertical-align: middle;
    border: 2px solid #f33602;
    border-radius: 4px;
    background: #ffffff;
    transition: all 0.25s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.agreement-text {
    flex: 1;
}

.agreement-text a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.25s ease;
}

.agreement-text a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ========== 验证码输入行 ========== */
.code-row {
    display: flex;
    gap: 8px;
}
.code-row input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    outline: none;
    transition: all 0.25s ease;
}
.code-row input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.code-btn {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.code-btn:hover {
    background: #eff6ff;
}
.code-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}
