login.wxss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. .login-bg {
  2. min-height: 100vh;
  3. background: #f7f8fa;
  4. display: flex;
  5. align-items: center;
  6. justify-content: center;
  7. }
  8. .login-box {
  9. width: 90vw;
  10. max-width: 600rpx;
  11. background: #fff;
  12. border-radius: 24rpx;
  13. box-shadow: 0 8rpx 32rpx rgba(0,0,0,0.08);
  14. padding: 60rpx 40rpx 40rpx 40rpx;
  15. display: flex;
  16. flex-direction: column;
  17. align-items: center;
  18. }
  19. .login-title {
  20. font-size: 40rpx;
  21. font-weight: bold;
  22. margin-bottom: 40rpx;
  23. }
  24. .login-tabs {
  25. display: flex;
  26. width: 100%;
  27. margin-bottom: 30rpx;
  28. }
  29. .tab {
  30. flex: 1;
  31. text-align: center;
  32. font-size: 28rpx;
  33. padding: 16rpx 0;
  34. color: #888;
  35. border-bottom: 4rpx solid transparent;
  36. }
  37. .tab.active {
  38. color: #7ac81e;
  39. border-bottom: 4rpx solid #7ac81e;
  40. font-weight: bold;
  41. }
  42. .login-form {
  43. width: 100%;
  44. margin-bottom: 20rpx;
  45. }
  46. .login-input {
  47. width: 90%;
  48. height: 80rpx;
  49. border: 1rpx solid #eee;
  50. border-radius: 12rpx;
  51. margin-bottom: 20rpx;
  52. padding: 0 24rpx;
  53. font-size: 28rpx;
  54. background: #f7f8fa;
  55. }
  56. .code-row {
  57. display: flex;
  58. align-items: center;
  59. }
  60. .code-input {
  61. flex: 1;
  62. margin-right: 16rpx;
  63. }
  64. .code-btn {
  65. height: 80rpx;
  66. background: #7ac81e;
  67. color: #fff;
  68. border-radius: 12rpx;
  69. padding: 0 24rpx;
  70. font-size: 28rpx;
  71. }
  72. .login-btn {
  73. width: 100%;
  74. height: 80rpx;
  75. background: #7ac81e;
  76. color: #fff;
  77. font-size: 32rpx;
  78. border-radius: 40rpx;
  79. margin-bottom: 20rpx;
  80. }
  81. .login-btn:disabled {
  82. background: #b2e59e;
  83. }
  84. .login-agree {
  85. display: flex;
  86. align-items: center;
  87. font-size: 24rpx;
  88. color: #888;
  89. margin-bottom: 30rpx;
  90. }
  91. .login-agree .link {
  92. color: #7ac81e;
  93. margin: 0 4rpx;
  94. }
  95. .login-divider {
  96. width: 100%;
  97. text-align: center;
  98. color: #bbb;
  99. font-size: 24rpx;
  100. margin: 30rpx 0 20rpx 0;
  101. }
  102. .wechat-btn, .qq-btn {
  103. width: 100%;
  104. height: 70rpx;
  105. border-radius: 35rpx;
  106. font-size: 28rpx;
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. margin-bottom: 16rpx;
  111. border: 1rpx solid #eee;
  112. background: #f7f8fa;
  113. }
  114. .wechat-btn {
  115. color: #09bb07;
  116. border: 1rpx solid #09bb07;
  117. }
  118. .qq-btn {
  119. color: #498ff6;
  120. border: 1rpx solid #498ff6;
  121. }
  122. .icon {
  123. width: 40rpx;
  124. height: 40rpx;
  125. margin-right: 16rpx;
  126. }
  127. .popup-overlay {
  128. position: fixed;
  129. top: 0;
  130. left: 0;
  131. right: 0;
  132. bottom: 0;
  133. background-color: rgba(0, 0, 0, 0.6); /* 半透明背景 */
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. z-index: 999; /* 确保在最上层 */
  138. }
  139. .register-popup-content {
  140. background-color: #fff;
  141. border-radius: 24rpx;
  142. width: 85vw; /* 弹窗宽度 */
  143. max-width: 600rpx;
  144. padding: 60rpx 40rpx;
  145. position: relative; /* 用于定位关闭按钮 */
  146. display: flex;
  147. flex-direction: column;
  148. align-items: center;
  149. }
  150. .register-popup-content .popup-title {
  151. font-size: 40rpx;
  152. font-weight: bold;
  153. margin-bottom: 40rpx;
  154. color: #333;
  155. }
  156. .register-form {
  157. width: 100%;
  158. margin-bottom: 30rpx;
  159. }
  160. /* 注册表单的输入框样式,可以复用登录的 login-input */
  161. .register-form .login-input {
  162. width: 90%; /* 输入框宽度调整为100% */
  163. height: 80rpx;
  164. border: 1rpx solid #eee;
  165. border-radius: 12rpx;
  166. margin-bottom: 20rpx;
  167. padding: 0 24rpx;
  168. font-size: 28rpx;
  169. background: #f7f8fa;
  170. }
  171. /* 注册表单的获取验证码行样式,可以复用登录的 code-row */
  172. .register-form .code-row {
  173. display: flex;
  174. align-items: center;
  175. margin-bottom: 20rpx; /* 增加底部间距 */
  176. }
  177. /* 注册表单的验证码输入框样式,可以复用登录的 code-input */
  178. .register-form .code-input {
  179. flex: 1;
  180. margin-right: 16rpx;
  181. width: auto; /* 验证码输入框宽度自适应 */
  182. }
  183. /* 注册表单的获取验证码按钮样式,可以复用登录的 code-btn */
  184. .register-form .code-btn {
  185. height: 80rpx;
  186. background: #7ac81e;
  187. color: #fff;
  188. border-radius: 12rpx;
  189. padding: 0 24rpx;
  190. font-size: 28rpx;
  191. }
  192. /* 注册按钮样式,可以复用登录的 login-btn */
  193. .register-popup-content .login-btn {
  194. width: 100%;
  195. height: 80rpx;
  196. background: #7ac81e;
  197. color: #fff;
  198. font-size: 32rpx;
  199. border-radius: 40rpx;
  200. margin-bottom: 0; /* 移除底部间距 */
  201. }
  202. .close-btn {
  203. position: absolute;
  204. top: 20rpx;
  205. right: 20rpx;
  206. font-size: 36rpx; /* 调整文本大小 */
  207. color: #999;
  208. padding: 10rpx;
  209. /* 可以加个边框或者背景 */
  210. /* border: 1rpx solid #999; */
  211. /* border-radius: 50%; */
  212. /* background-color: #eee; */
  213. }
  214. /* 如果你没有引入uni-ui,可以使用文本X并给样式 */
  215. /* .close-btn text { font-size: 36rpx; } */
  216. .form-actions {
  217. width: 100%;
  218. display: flex;
  219. justify-content: space-between;
  220. align-items: center;
  221. margin-top: -10rpx;
  222. margin-bottom: 20rpx;
  223. padding: 0 10rpx;
  224. }
  225. .login-link {
  226. color: #7ac81e;
  227. font-size: 26rpx;
  228. }
  229. .forgot-password-link {
  230. color: #7ac81e;
  231. font-size: 26rpx;
  232. }