/* login-tech.css */ /* 定义主色调变量 */ :root { --primary-color: #1ab394; --primary-glow: rgba(26, 179, 148, 0.5); --bg-dark: #0f1319; --text-color: #e0e0e0; } body.gray-bg { background: var(--bg-dark); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text-color); overflow: hidden; /* 防止滚动条出现 */ } /* 动态背景 Canvas */ #canvas-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; } /* 登录框主体 - 毛玻璃特效 */ .middle-box { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); /* 毛玻璃模糊 */ -webkit-backdrop-filter: blur(10px); padding: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); margin: 50px auto auto auto; /* 调整垂直位置 */ max-width: 400px; width: 100%; float: none; /* display: inline-block;*/ position: relative; z-index: 10; top: 50px } /* 标题样式 */ .logo-name { color: var(--primary-color); font-size: 60px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; text-shadow: 0 0 10px var(--primary-glow); } .middle-box h3 { color: #fff; font-weight: 300; margin-bottom: 30px; } /* 输入框重写 - 科技感下划线风格 */ .form-control { background-color: transparent !important; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0; color: #fff !important; box-shadow: none; padding-left: 0; transition: all 0.3s ease; height: 40px; } .form-control:focus { border-bottom: 1px solid var(--primary-color); box-shadow: 0 1px 0 0 var(--primary-glow); color: #fff; } /* 针对浏览器自动填充背景色的 Hack */ input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 30px #151a23 inset !important; -webkit-text-fill-color: white !important; transition: background-color 5000s ease-in-out 0s; } .form-control::-webkit-input-placeholder { color: rgba(255,255,255,0.4); } .form-control:-moz-placeholder { color: rgba(255,255,255,0.4); } /* 验证码输入框调整 */ .input-group-addon { background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); } /* 按钮样式 - 霓虹光效 */ .btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; font-weight: bold; border-radius: 25px; /* 圆角按钮 */ transition: all 0.3s ease; box-shadow: 0 4px 15px var(--primary-glow); margin-top: 20px; } .btn-primary:hover, .btn-primary:active, .btn-primary:focus { background-color: #15947a !important; border-color: #15947a !important; box-shadow: 0 6px 20px rgba(26, 179, 148, 0.8); transform: translateY(-2px); } /* 底部文字 */ .text-muted { color: rgba(255, 255, 255, 0.5) !important; }