/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 注册包装器 */
.register-wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 主头部Logo */
.register-header-main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    /* background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    /* box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); */
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

/* 注册内容区 */
.register-content {
    width: 100%;
    display: flex;
    gap: 40px;
    align-items: stretch;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 注册表单容器 */
.register-form-container {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 表单头部 */
.form-header {
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-header p {
    color: #64748b;
    font-size: 15px;
}

/* 必填项标记 */
.required {
    color: #ef4444;
    font-size: 14px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-group.focused label {
    color: #3b82f6;
}

/* 输入框容器 */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    left: 16px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.form-group.focused .input-icon {
    transform: scale(1.1);
}

.form-group input {
    width: 100%;
    padding: 10px 16px 10px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1e293b;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* 验证码输入框容器 */
.code-container {
    gap: 12px;
}

.code-container input {
    flex: 1;
    padding-right: 16px;
}

/* 发送验证码按钮 */
.send-code-btn {
    padding: 14px 20px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.send-code-btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* 切换密码可见性按钮 */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.3s ease;
}

.toggle-password:hover {
    transform: scale(1.1);
}

.toggle-icon {
    width: 20px;
    height: 20px;
}

/* 注册按钮 */
.register-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.register-btn:hover:not(.loading) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.register-btn:active:not(.loading) {
    transform: translateY(0);
}

/* 按钮加载状态 */
.register-btn.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #93c5fd 0%, #a5b4fc 100%);
}

.btn-loading {
    display: none;
    width: 16px;
    height: 16px;
}

.register-btn.loading .btn-loading {
    display: block;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* 底部链接 */
.register-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: #64748b;
}

.policy-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.policy-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 特性展示区域 */
.register-features {
    /* flex: 1; */
    min-width: 400px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-header {
    margin-bottom: 40px;
}

.features-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.features-header p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 特性列表 */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 特性项 */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
    opacity: 1;
    transform: translateX(4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 提示框样式 */
.toast-message {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    max-width: 350px;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon-success svg {
    width: 20px;
    height: 20px;
}

.toast-icon-error svg {
    width: 20px;
    height: 20px;
}

.toast-content {
    flex: 1;
}

/* 动画效果 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .register-content {
        flex-direction: column;
        gap: 0;
    }
    
    .register-features {
        min-width: auto;
        padding: 40px;
    }
    
    .features-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .register-form-container {
        padding: 30px 24px;
    }
    
    .form-header h1 {
        font-size: 28px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .toast-message {
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .register-form-container {
        padding: 24px 20px;
    }
    
    .register-features {
        padding: 30px 20px;
    }
    
    .form-group input {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }
    
    .send-code-btn {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .register-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}