style.scss 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. * {
  2. padding: 0;
  3. margin: 0;
  4. }
  5. .content {
  6. width: 100vw;
  7. height: 100vh;
  8. background-color: rgb(82, 84, 97);
  9. position: relative;
  10. .wrapper {
  11. width: 70%;
  12. height: 80%;
  13. border-radius: 20px;
  14. position: absolute;
  15. left: 50%;
  16. top: 50%;
  17. transform: translate(-50%, -50%);
  18. background-image: linear-gradient(
  19. to right top,
  20. rgba(40, 42, 55, 1) 0%,
  21. rgba(40, 42, 55, 1) 20%,
  22. rgba(40, 42, 55, 0.9) 60%,
  23. rgba(40, 42, 55, 0.4) 100%
  24. ),
  25. url(../images/bg.jpg);
  26. background-size: cover;
  27. background-repeat: no-repeat;
  28. background-position: top;
  29. display: flex;
  30. flex-direction: row;
  31. align-items: center;
  32. padding: 80px;
  33. box-sizing: border-box;
  34. .form-wrapper {
  35. width: 100%;
  36. height: 50vh;
  37. position: relative;
  38. top: -10px;
  39. .login-form,
  40. .signup-form {
  41. position: absolute;
  42. transition: 0.5s;
  43. .tips {
  44. color: #fff;
  45. h1 {
  46. font-size: 45px;
  47. margin: 20px 0;
  48. font-family: "Newake", Times, serif;
  49. letter-spacing: 2px;
  50. }
  51. span {
  52. margin: 0 0 25px 0;
  53. font-family: "Century Gothic", Times, serif;
  54. }
  55. span:first-child {
  56. color: #d1d1d1;
  57. }
  58. span:last-child {
  59. color: rgb(29, 144, 245);
  60. cursor: pointer;
  61. }
  62. }
  63. .form-wrapper {
  64. .input-wrapper {
  65. position: relative;
  66. margin: 30px 0;
  67. transition: 0.5s;
  68. .inputs {
  69. width: 100%;
  70. height: 70px;
  71. display: block;
  72. border-radius: 18px;
  73. border: 0;
  74. background-color: rgb(52, 50, 69);
  75. color: #fff;
  76. padding: 20px 60px 0px 30px;
  77. box-sizing: border-box;
  78. outline: none;
  79. font-size: 15px;
  80. font-weight: 600;
  81. font-family: "Century Gothic", Times, serif;
  82. &:focus {
  83. border: 1px solid rgb(21, 139, 243);
  84. box-shadow: 0 0 1px 1px rgb(21, 139, 243);
  85. }
  86. }
  87. &::before {
  88. display: inline-block;
  89. width: 50px;
  90. height: 10px;
  91. color: rgb(113, 114, 119);
  92. position: absolute;
  93. top: 10px;
  94. left: 30px;
  95. white-space: nowrap;
  96. font-family: "Century Gothic", Times, serif;
  97. }
  98. &::after {
  99. content: "";
  100. display: inline-block;
  101. width: 40px;
  102. height: 40px;
  103. position: absolute;
  104. top: 36px;
  105. right: 10px;
  106. background-size: 50%;
  107. background-repeat: no-repeat;
  108. z-index: 1;
  109. white-space: nowrap;
  110. }
  111. }
  112. .user {
  113. &::before {
  114. content: "Email";
  115. }
  116. &::after {
  117. background-image: url(../images/email.png);
  118. }
  119. }
  120. .pwd {
  121. input {
  122. letter-spacing: 2px;
  123. }
  124. &::before {
  125. content: "Password";
  126. }
  127. &::after {
  128. background-image: url(../images/password.png);
  129. }
  130. }
  131. .veri-code {
  132. opacity: 0;
  133. z-index: -1;
  134. position: relative;
  135. transition: 0.5s;
  136. .veri-code-input {
  137. padding-right: 200px;
  138. }
  139. .veri-code-tips {
  140. position: absolute;
  141. right: 20px;
  142. top: 36px;
  143. color: rgb(39, 150, 247);
  144. cursor: pointer;
  145. }
  146. &::before {
  147. content: "Verification Code";
  148. }
  149. }
  150. }
  151. .form-btn {
  152. width: 100%;
  153. height: 60px;
  154. background-color: rgb(0, 129, 241);
  155. color: #fff;
  156. border-radius: 50px;
  157. border: 0;
  158. font-size: 20px;
  159. font-weight: 600;
  160. margin: 15px auto;
  161. cursor: pointer;
  162. font-family: "Century Gothic", Times, serif;
  163. }
  164. }
  165. .login-form {
  166. z-index: 1;
  167. opacity: 1;
  168. animation: loginAnimation 1s;
  169. animation-fill-mode: forwards;
  170. animation-timing-function: ease;
  171. .btn-wrapper {
  172. display: flex;
  173. transform: translate(0, -90px);
  174. .login-btn {
  175. flex: 1;
  176. margin-left: 10px;
  177. transition: 0.5s;
  178. &:hover {
  179. background-color: rgb(39, 150, 247);
  180. }
  181. }
  182. .other-login-btn {
  183. flex: 1;
  184. margin-right: 10px;
  185. transition: 0.5s;
  186. background-color: rgb(85, 91, 105);
  187. &:hover {
  188. background-color: rgb(101, 109, 126);
  189. }
  190. }
  191. }
  192. .form-wrapper {
  193. .other-login {
  194. transform: translate(0, -60%);
  195. .divider {
  196. width: 100%;
  197. margin: 20px 0;
  198. text-align: center;
  199. display: flex;
  200. align-items: center;
  201. justify-content: space-between;
  202. .line {
  203. display: inline-block;
  204. max-width: 45%;
  205. width: 45%;
  206. flex: 1;
  207. height: 1px;
  208. background-color: #fff;
  209. }
  210. .divider-text {
  211. vertical-align: middle;
  212. margin: 0px 20px;
  213. line-height: 0;
  214. display: inline-block;
  215. width: 50px;
  216. color: #fff;
  217. }
  218. }
  219. .other-login-wrapper {
  220. width: 100%;
  221. display: flex;
  222. justify-content: center;
  223. align-items: center;
  224. .other-login-item {
  225. border: 1px solid #fff;
  226. padding: 10px;
  227. text-align: center;
  228. border-radius: 10px;
  229. cursor: pointer;
  230. font-weight: 600;
  231. color: rgb(51, 49, 116);
  232. margin: 0 10px;
  233. img {
  234. width: 30px;
  235. height: 30px;
  236. vertical-align: middle;
  237. }
  238. span {
  239. vertical-align: middle;
  240. }
  241. &:hover {
  242. width: 80px;
  243. height: 50%;
  244. background-color: #ccc;
  245. border: 0;
  246. box-shadow: -20px 10px 32px 1px rgba(182, 183, 185, 0.37);
  247. }
  248. }
  249. }
  250. }
  251. }
  252. }
  253. .signup-form {
  254. opacity: 1;
  255. }
  256. }
  257. }
  258. }
  259. @keyframes loginAnimation {
  260. 0% {
  261. transform: translate(0, 100px);
  262. }
  263. 100% {
  264. transform: translate(0, 0px);
  265. }
  266. }