/* 登录对话框样式 */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-dialog {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 380px;
    max-width: 90%;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.login-overlay.active .login-dialog {
    transform: translateY(0);
}

.login-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.login-close {
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.login-close:hover {
    background-color: #f5f5f5;
}

.login-tabs {
    display: flex;
    padding: 0 24px;
    border-bottom: 1px solid #f0f0f0;
}

.login-tab {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    color: #666;
}

.login-tab.active {
    color: var(--primary-color);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.login-content {
    padding: 24px;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.qr-code {
    width: 180px;
    height: 180px;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
}

.qr-code img {
    width: 88%;
    height: 88%;
}

.qr-code-text {
    font-size: 13px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: flex;
    gap: 12px;
}

.verification-code-input {
    flex: 1;
}

.verification-code-btn {
    padding: 0 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.verification-code-btn:disabled {
    background-color: #d9d9d9;
    cursor: not-allowed;
}

.login-btn {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
}

.login-btn:hover {
    background-color: #2563eb;
}

/* 个人信息补充对话框 */
.userinfo-form {
    display: none;
}

.userinfo-form.active {
    display: block;
}

.steps {
    display: flex;
    margin-bottom: 24px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 1px;
    background-color: #d9d9d9;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #d9d9d9;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-size: 12px;
}

.step.active .step-number {
    background-color: var(--primary-color);
}

.step.completed .step-number {
    background-color: #52c41a;
}

.step-label {
    font-size: 12px;
    color: #999;
}

.step.active .step-label {
    color: var(--primary-color);
}

.step.completed .step-label {
    color: #52c41a;
}

.agreement {
    margin-top: 16px;
    font-size: 12px;
    color: #666;
}

.agreement a {
    color: var(--primary-color);
    text-decoration: none;
}

.account-created {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f6ffed;
    color: #52c41a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 32px;
}

.account-created-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.account-created-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s;
}