login.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. .login-container {
  2. min-height: 100vh;
  3. background-color: #FFFFFF;
  4. background-image: url('../../static/images/bg-header.svg');
  5. background-size: 100% auto;
  6. background-repeat: no-repeat;
  7. background-position: top center;
  8. display: flex;
  9. flex-direction: column;
  10. align-items: center;
  11. position: relative;
  12. padding: 0 40rpx;
  13. }
  14. .login-header {
  15. margin-top: 22vh; // slightly pulled up to fit nicely inside the enriched colored background
  16. display: flex;
  17. flex-direction: column;
  18. align-items: center;
  19. .logo-box {
  20. width: 140rpx;
  21. height: 140rpx;
  22. background-color: $brand-primary;
  23. border-radius: 24rpx;
  24. display: flex;
  25. flex-direction: column;
  26. align-items: center;
  27. justify-content: center;
  28. margin-bottom: 50rpx;
  29. box-shadow: 0 16rpx 32rpx rgba(31, 108, 255, 0.15); // soft shadow
  30. .logo-text1,
  31. .logo-text2 {
  32. color: #FFFFFF;
  33. font-size: 32rpx;
  34. font-weight: bold;
  35. letter-spacing: 4rpx;
  36. line-height: 1.4;
  37. }
  38. }
  39. .login-title {
  40. font-size: 52rpx;
  41. font-weight: 600;
  42. color: #1A1A1A;
  43. margin-bottom: 24rpx;
  44. }
  45. .login-subtitle {
  46. font-size: 30rpx;
  47. color: #888888;
  48. letter-spacing: 1rpx;
  49. }
  50. }
  51. .login-body {
  52. width: 100%;
  53. margin-top: 100rpx; // Space between title and buttons
  54. .btn-primary {
  55. background-color: $brand-primary;
  56. color: #FFFFFF;
  57. font-size: 34rpx;
  58. font-weight: 500;
  59. border-radius: 48rpx; // Pill shape for modern look
  60. height: 96rpx;
  61. line-height: 96rpx;
  62. margin-bottom: 30rpx;
  63. &::after {
  64. border: none;
  65. }
  66. &:active {
  67. opacity: 0.8;
  68. }
  69. }
  70. .agreement-box {
  71. display: flex;
  72. justify-content: center;
  73. align-items: flex-start;
  74. padding: 0 20rpx;
  75. .checkbox-label {
  76. display: flex;
  77. align-items: center;
  78. flex-wrap: wrap; // Text might wrap
  79. font-size: 26rpx;
  80. }
  81. .agreement-text {
  82. color: #888888;
  83. line-height: 1.6;
  84. }
  85. .link-text {
  86. color: $brand-primary;
  87. line-height: 1.6;
  88. margin: 0 4rpx; // small gap
  89. }
  90. }
  91. }
  92. .login-footer {
  93. position: absolute;
  94. bottom: calc(env(safe-area-inset-bottom) + 80rpx);
  95. width: 100%;
  96. box-sizing: border-box;
  97. padding: 0 40rpx;
  98. .divider-text {
  99. text-align: center;
  100. font-size: 26rpx;
  101. color: #CCCCCC;
  102. margin-bottom: 50rpx;
  103. position: relative;
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. &::before,
  108. &::after {
  109. content: "";
  110. width: 80rpx;
  111. height: 1rpx;
  112. background-color: #E5E5E5;
  113. margin: 0 20rpx;
  114. }
  115. }
  116. .icon-grid {
  117. display: flex;
  118. justify-content: space-around;
  119. padding: 0 20rpx;
  120. .icon-item {
  121. display: flex;
  122. flex-direction: column;
  123. align-items: center;
  124. .icon-circle {
  125. width: 100rpx;
  126. height: 100rpx;
  127. background-color: rgba(31, 108, 255, 0.08); // Semi-transparent brand blue
  128. border-radius: 50%;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. margin-bottom: 20rpx;
  133. transition: transform 0.2s, background-color 0.2s;
  134. &:active {
  135. background-color: rgba(31, 108, 255, 0.15);
  136. transform: scale(0.95);
  137. }
  138. .icon-img {
  139. width: 48rpx;
  140. height: 48rpx;
  141. }
  142. }
  143. .icon-text {
  144. font-size: 24rpx;
  145. color: #555555;
  146. }
  147. }
  148. }
  149. }
  150. .custom-modal {
  151. position: fixed;
  152. top: 0;
  153. left: 0;
  154. right: 0;
  155. bottom: 0;
  156. z-index: 999;
  157. visibility: hidden;
  158. opacity: 0;
  159. transition: all 0.3s;
  160. display: flex;
  161. justify-content: center;
  162. align-items: center;
  163. &.is-show {
  164. visibility: visible;
  165. opacity: 1;
  166. .modal-content {
  167. transform: scale(1);
  168. opacity: 1;
  169. }
  170. }
  171. .modal-mask {
  172. position: absolute;
  173. width: 100%;
  174. height: 100%;
  175. background-color: rgba(0, 0, 0, 0.4);
  176. }
  177. .modal-content {
  178. position: relative;
  179. width: 600rpx;
  180. background-color: #FFFFFF;
  181. border-radius: 24rpx;
  182. transform: scale(0.9);
  183. opacity: 0;
  184. transition: all 0.3s;
  185. padding-bottom: 40rpx;
  186. .modal-header {
  187. text-align: center;
  188. padding-top: 50rpx;
  189. .modal-title {
  190. font-size: 34rpx;
  191. font-weight: bold;
  192. color: #1A1A1A;
  193. }
  194. }
  195. .modal-body {
  196. font-size: 32rpx;
  197. text-align: center;
  198. padding: 40rpx 40rpx 50rpx;
  199. line-height: 1.6;
  200. .modal-text-wrapper {
  201. .modal-text {
  202. color: #555555;
  203. }
  204. .link-text {
  205. color: $brand-primary;
  206. }
  207. }
  208. }
  209. .modal-footer {
  210. display: flex;
  211. justify-content: space-between;
  212. padding: 0 40rpx;
  213. view {
  214. flex: 1;
  215. height: 88rpx;
  216. display: flex;
  217. justify-content: center;
  218. align-items: center;
  219. font-size: 32rpx;
  220. border-radius: 44rpx;
  221. transition: opacity 0.2s;
  222. &:active {
  223. opacity: 0.8;
  224. }
  225. }
  226. .btn-cancel {
  227. background-color: #F4F5F7;
  228. color: #555555;
  229. margin-right: 20rpx;
  230. }
  231. .btn-confirm {
  232. background-color: $brand-primary;
  233. color: #FFFFFF;
  234. font-weight: 500;
  235. margin-left: 20rpx;
  236. }
  237. }
  238. }
  239. &.doc-modal {
  240. .doc-modal-content {
  241. width: 660rpx; // Slightly wider for easier text reading
  242. .modal-header {
  243. padding-top: 40rpx;
  244. padding-bottom: 20rpx;
  245. }
  246. .doc-modal-body {
  247. max-height: 55vh;
  248. text-align: left;
  249. padding: 10rpx 40rpx 30rpx; // scroll-view will handle overflow
  250. box-sizing: border-box;
  251. font-size: 28rpx;
  252. }
  253. .modal-footer {
  254. justify-content: center;
  255. padding-bottom: 20rpx;
  256. .full-width {
  257. flex: none;
  258. width: 100%;
  259. margin: 0; // Overrides any side margins
  260. }
  261. }
  262. }
  263. }
  264. }