index.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /* 页面容器 */
  2. .register-container {
  3. min-height: 100vh;
  4. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  5. padding: 64rpx 32rpx;
  6. display: flex;
  7. flex-direction: column;
  8. justify-content: center;
  9. align-items: center;
  10. box-sizing: border-box;
  11. }
  12. /* 页面头部 */
  13. .register-header {
  14. text-align: center;
  15. margin-bottom: 96rpx;
  16. }
  17. .register-logo {
  18. width: 160rpx;
  19. height: 160rpx;
  20. border-radius: 50%;
  21. margin-bottom: 48rpx;
  22. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.12);
  23. }
  24. .register-title-container {
  25. margin-top: 32rpx;
  26. }
  27. .register-title {
  28. display: block;
  29. font-size: 48rpx;
  30. font-weight: 600;
  31. color: #262626;
  32. margin-bottom: 16rpx;
  33. letter-spacing: 2rpx;
  34. }
  35. .register-subtitle {
  36. display: block;
  37. font-size: 28rpx;
  38. color: #8c8c8c;
  39. line-height: 1.5;
  40. }
  41. /* 表单区域 */
  42. .register-form {
  43. width: 100%;
  44. max-width: 600rpx;
  45. background: #ffffff;
  46. border-radius: 24rpx;
  47. padding: 64rpx 48rpx;
  48. box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08);
  49. }
  50. .form-item {
  51. margin-bottom: 48rpx;
  52. }
  53. .form-label {
  54. display: block;
  55. font-size: 28rpx;
  56. color: #262626;
  57. margin-bottom: 16rpx;
  58. font-weight: 500;
  59. }
  60. .input-wrapper {
  61. position: relative;
  62. }
  63. .form-input {
  64. width: 100%;
  65. height: 96rpx;
  66. border: 2rpx solid #d9d9d9;
  67. border-radius: 16rpx;
  68. padding: 0 32rpx;
  69. font-size: 32rpx;
  70. color: #262626;
  71. box-sizing: border-box;
  72. background: #fafafa;
  73. transition: all 0.2s ease-in-out;
  74. }
  75. .form-input:focus {
  76. border-color: #1890ff;
  77. background: #ffffff;
  78. box-shadow: 0 0 0 4rpx rgba(24, 144, 255, 0.2);
  79. }
  80. .form-input::placeholder {
  81. color: #bfbfbf;
  82. font-size: 28rpx;
  83. }
  84. /* 注册按钮 */
  85. .register-button {
  86. width: 100%;
  87. height: 96rpx;
  88. background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  89. color: #ffffff;
  90. border-radius: 16rpx;
  91. font-size: 32rpx;
  92. font-weight: 500;
  93. margin-top: 32rpx;
  94. transition: all 0.2s ease-in-out;
  95. box-shadow: 0 4rpx 16rpx rgba(24, 144, 255, 0.3);
  96. }
  97. .register-button:active {
  98. transform: translateY(2rpx);
  99. box-shadow: 0 2rpx 8rpx rgba(24, 144, 255, 0.3);
  100. }
  101. .register-button.loading {
  102. opacity: 0.8;
  103. }
  104. /* 页脚区域 */
  105. .register-footer {
  106. text-align: center;
  107. margin-top: 48rpx;
  108. }
  109. .footer-text {
  110. font-size: 28rpx;
  111. color: #595959;
  112. }
  113. .link-text {
  114. color: #1890ff;
  115. font-size: 28rpx;
  116. text-decoration: none;
  117. }
  118. .link-text:active {
  119. opacity: 0.7;
  120. }
  121. .register-footer-info {
  122. position: absolute;
  123. bottom: 64rpx;
  124. left: 0;
  125. right: 0;
  126. text-align: center;
  127. }
  128. .footer-tip {
  129. font-size: 24rpx;
  130. color: #8c8c8c;
  131. margin-bottom: 16rpx;
  132. }
  133. .footer-links {
  134. display: flex;
  135. justify-content: center;
  136. align-items: center;
  137. gap: 8rpx;
  138. }
  139. .link-separator {
  140. color: #8c8c8c;
  141. font-size: 24rpx;
  142. }
  143. /* 响应式设计 */
  144. @media screen and (max-width: 375px) {
  145. .register-container {
  146. padding: 48rpx 24rpx;
  147. }
  148. .register-form {
  149. padding: 48rpx 32rpx;
  150. }
  151. .register-title {
  152. font-size: 44rpx;
  153. }
  154. .register-subtitle {
  155. font-size: 26rpx;
  156. }
  157. }
  158. @media screen and (min-width: 415px) {
  159. .register-container {
  160. padding: 96rpx 48rpx;
  161. }
  162. .register-form {
  163. padding: 80rpx 64rpx;
  164. }
  165. }
  166. /* 深色模式适配 */
  167. @media (prefers-color-scheme: dark) {
  168. .register-container {
  169. background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  170. }
  171. .register-title {
  172. color: #e6e6e6;
  173. }
  174. .register-subtitle {
  175. color: #8c8c8c;
  176. }
  177. .register-form {
  178. background: #2a2a2a;
  179. box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.3);
  180. }
  181. .form-label {
  182. color: #e6e6e6;
  183. }
  184. .form-input {
  185. background: #3a3a3a;
  186. border-color: #4a4a4a;
  187. color: #e6e6e6;
  188. }
  189. .form-input:focus {
  190. background: #3a3a3a;
  191. border-color: #1890ff;
  192. }
  193. }