/* ============================================ 注册页面 — BlackFruit 暗色科技风 配色:深蓝 #0a0c16 / 蓝 #38BDF8 / 紫 #6366F1 ============================================ */ * { margin: 0; padding: 0; box-sizing: border-box; } #regist { min-height: 100vh; width: 100%; display: flex; justify-content: center; align-items: center; background: #0a0c16; background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 80% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%); } /* ---- 登录容器 ---- */ .login-container { width: 960px; min-height: 600px; display: flex; justify-content: center; align-items: center; position: relative; } .login-jump-btn { position: absolute; top: 20px; right: 20px; z-index: 20; } .login-jump-btn .btn { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); color: #38BDF8; border-radius: 8px; } .login-jump-btn .btn a { color: inherit; text-decoration: none; } /* ---- 左侧装饰背景板 ---- */ .container-back { width: 960px; height: 560px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); border-radius: 20px; overflow: hidden; position: relative; border: 1px solid rgba(255, 255, 255, 0.06); } .back-text { font-size: 16px; z-index: 10; color: #FFFFFF; margin-top: 140px; margin-left: 65px; font-weight: 400; position: relative; } .text-welcome { font-size: 48px; font-family: 'Inter', 'Bahnschrift', sans-serif; line-height: 1; font-weight: 700; background: linear-gradient(135deg, #38BDF8 0%, #6366F1 50%, #EC4899 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 4px; } .text-title { margin-top: 12px; font-size: 18px; color: rgba(226, 232, 240, 0.85); } .text-level { font-size: 13px; margin-top: 60px; color: rgba(148, 163, 184, 0.5); } /* 装饰光线 */ .back-line1, .back-line2, .back-line3 { width: 60px; background: linear-gradient(180deg, rgba(56, 189, 248, 0.12) 0%, transparent 100%); z-index: 2; position: absolute; } .back-line1 { height: 500px; transform: rotate(45deg); top: -120px; left: 300px; } .back-line2 { height: 600px; transform: rotate(110deg); top: 0; left: 400px; background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%); } .back-line3 { height: 500px; transform: rotate(45deg); top: 200px; left: 100px; background: linear-gradient(180deg, rgba(236, 72, 153, 0.08) 0%, transparent 100%); } /* ---- 右侧注册表单卡片(毛玻璃) ---- */ .container-before { width: 440px; max-height: 580px; overflow-y: auto; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); position: absolute; right: 60px; border-radius: 16px; z-index: 10; } /* 自定义滚动条 */ .container-before::-webkit-scrollbar { width: 4px; } .container-before::-webkit-scrollbar-track { background: transparent; } .container-before::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.2); border-radius: 4px; } .login { padding: 48px 40px 36px; font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; } /* ---- 标题区 ---- */ .login-text { display: flex; flex-direction: column; } .login-text-title { font-size: 24px; color: #F1F5F9; line-height: 1; font-weight: 600; } .login-text-regist { margin-top: 8px; color: rgba(148, 163, 184, 0.7); font-size: 14px; } .login-text-regist a { color: #38BDF8; cursor: pointer; text-decoration: none; transition: color 0.2s; } .login-text-regist a:hover { color: #7DD3FC; } /* ---- 切换标签(邮箱/手机) ---- */ .login-form { margin-top: 28px; } .login-top { display: flex; gap: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding-bottom: 0; } .login-email, .login-phone { padding-bottom: 10px; color: rgba(148, 163, 184, 0.6); cursor: pointer; font-size: 14px; transition: color 0.2s; border-bottom: 2px solid transparent; margin-bottom: -1px; } .login-email:hover, .login-phone:hover { color: rgba(226, 232, 240, 0.8); } .active { color: #38BDF8 !important; border-bottom: 2px solid #38BDF8 !important; } /* ---- 表单 ---- */ .form-main { margin-top: 20px; } .form-item { margin-top: 16px; } /* Element UI 输入框覆盖 → 暗色风格 */ .form-main .el-input__inner, .form-main .el-textarea__inner, .form-main .el-select .el-input__inner, .custom-form .el-input__inner, .custom-form .el-textarea__inner { background: rgba(30, 41, 59, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; color: #E2E8F0 !important; border-radius: 10px !important; height: 44px !important; line-height: 44px !important; transition: all 0.2s ease; } .form-main .el-input__inner:focus, .form-main .el-textarea__inner:focus, .custom-form .el-input__inner:focus, .custom-form .el-textarea__inner:focus { border-color: rgba(56, 189, 248, 0.4) !important; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08) !important; } .form-main .el-input__inner::placeholder, .custom-form .el-input__inner::placeholder { color: rgba(148, 163, 184, 0.4) !important; } /* 自定义表单 label */ .custom-form { margin-top: 8px; } .custom-form .el-form-item__label { color: rgba(226, 232, 240, 0.7) !important; line-height: 1; padding-bottom: 6px !important; font-size: 13px; } .custom-form .el-checkbox__label { color: rgba(148, 163, 184, 0.7) !important; } /* 手机号 select 前置 */ .input-with-select .el-input-group__prepend { background: rgba(30, 41, 59, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; border-right: none !important; border-radius: 10px 0 0 10px !important; color: #E2E8F0 !important; } /* 验证码按钮 */ .code-item { display: flex; gap: 10px; } .code-btn { background: linear-gradient(135deg, #38BDF8, #6366F1) !important; border: none !important; color: #FFFFFF !important; border-radius: 10px !important; white-space: nowrap; padding: 0 16px !important; font-size: 13px; } /* ---- 协议勾选 ---- */ .read-item { margin-top: 12px; } .read-text { flex: 1; font-size: 13px; line-height: 1.6; padding: 0 8px; color: rgba(148, 163, 184, 0.6); font-weight: 400; } .read-item a { color: #38BDF8; cursor: pointer; text-decoration: none; } .read-item a:hover { color: #7DD3FC; } .read-item .el-checkbox__inner { background: rgba(30, 41, 59, 0.6) !important; border-color: rgba(255, 255, 255, 0.12) !important; } .read-item .el-checkbox__input.is-checked .el-checkbox__inner { background: #38BDF8 !important; border-color: #38BDF8 !important; } /* 错误提示 */ .read-item .el-alert--error { background: rgba(239, 68, 68, 0.1) !important; border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 8px; color: #FCA5A5 !important; } .read-item .el-alert--error .el-alert__title { color: #FCA5A5 !important; } /* ---- 注册按钮 ---- */ .login-btn { width: 100%; height: 46px; background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%) !important; border: none !important; border-radius: 10px !important; font-size: 15px !important; font-weight: 600; letter-spacing: 2px; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3); } .login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45); } /* 隐藏的密码字段 */ .empty-input { position: absolute; opacity: 0; width: 0; height: 0; } /* ---- 移动端适配 ---- */ @media screen and (max-width: 750px) { #regist { background: #0a0c16; } .login-container { height: auto; min-height: 100vh; width: 100vw; padding: 20px 16px; flex-direction: column; } .container-back { display: none; } .container-before { width: 100%; max-height: none; position: static; border-radius: 16px; background: rgba(15, 23, 42, 0.9); } .login { padding: 36px 24px 28px; } .login-text-title { font-size: 22px; } .login-text-regist { font-size: 13px; } .login-top { gap: 16px; } .login-email, .login-phone { font-size: 14px; width: 50%; text-align: center; } .login-form { margin-top: 20px; } .form-main { margin-top: 16px; } .login-btn { height: 44px; font-size: 15px !important; } .code-btn { font-size: 13px; height: 44px; } .read-text { font-size: 12px; } .el-checkbox__label { font-size: 13px; } }