index.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. *, *:before, *:after {
  2. box-sizing: border-box;
  3. margin: 0;
  4. padding: 0;
  5. }
  6. body {
  7. font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  8. background: #ededed;
  9. }
  10. input, button {
  11. border: none;
  12. outline: none;
  13. background: none;
  14. font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  15. }
  16. .tip {
  17. font-size: 20px;
  18. margin: 40px auto 50px;
  19. text-align: center;
  20. }
  21. .content {
  22. overflow: hidden;
  23. position: absolute;
  24. left: 50%;
  25. top: 50%;
  26. width: 900px;
  27. height: 550px;
  28. margin: -300px 0 0 -450px;
  29. background: #fff;
  30. }
  31. .form {
  32. position: relative;
  33. width: 640px;
  34. height: 100%;
  35. transition: -webkit-transform 0.6s ease-in-out;
  36. transition: transform 0.6s ease-in-out;
  37. transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  38. padding: 50px 30px 0;
  39. }
  40. .sub-cont {
  41. overflow: hidden;
  42. position: absolute;
  43. left: 640px;
  44. top: 0;
  45. width: 900px;
  46. height: 100%;
  47. padding-left: 260px;
  48. background: #fff;
  49. transition: -webkit-transform 0.6s ease-in-out;
  50. transition: transform 0.6s ease-in-out;
  51. transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  52. }
  53. .content.s--signup .sub-cont {
  54. -webkit-transform: translate3d(-640px, 0, 0);
  55. transform: translate3d(-640px, 0, 0);
  56. }
  57. button {
  58. display: block;
  59. margin: 0 auto;
  60. width: 260px;
  61. height: 36px;
  62. border-radius: 30px;
  63. color: #fff;
  64. font-size: 15px;
  65. cursor: pointer;
  66. }
  67. .img {
  68. overflow: hidden;
  69. z-index: 2;
  70. position: absolute;
  71. left: 0;
  72. top: 0;
  73. width: 260px;
  74. height: 100%;
  75. padding-top: 360px;
  76. }
  77. .img:before {
  78. content: '';
  79. position: absolute;
  80. right: 0;
  81. top: 0;
  82. width: 900px;
  83. height: 100%;
  84. background-image: url(../img/bg.jpg);
  85. background-size: cover;
  86. transition: -webkit-transform 0.6s ease-in-out;
  87. transition: transform 0.6s ease-in-out;
  88. transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  89. }
  90. .img:after {
  91. content: '';
  92. position: absolute;
  93. left: 0;
  94. top: 0;
  95. width: 100%;
  96. height: 100%;
  97. background: rgba(0, 0, 0, 0.6);
  98. }
  99. .content.s--signup .img:before {
  100. -webkit-transform: translate3d(640px, 0, 0);
  101. transform: translate3d(640px, 0, 0);
  102. }
  103. .img__text {
  104. z-index: 2;
  105. position: absolute;
  106. left: 0;
  107. top: 50px;
  108. width: 100%;
  109. padding: 0 20px;
  110. text-align: center;
  111. color: #fff;
  112. transition: -webkit-transform 0.6s ease-in-out;
  113. transition: transform 0.6s ease-in-out;
  114. transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  115. }
  116. .img__text h2 {
  117. margin-bottom: 10px;
  118. font-weight: normal;
  119. }
  120. .img__text p {
  121. font-size: 14px;
  122. line-height: 1.5;
  123. }
  124. .content.s--signup .img__text.m--up {
  125. -webkit-transform: translateX(520px);
  126. transform: translateX(520px);
  127. }
  128. .img__text.m--in {
  129. -webkit-transform: translateX(-520px);
  130. transform: translateX(-520px);
  131. }
  132. .content.s--signup .img__text.m--in {
  133. -webkit-transform: translateX(0);
  134. transform: translateX(0);
  135. }
  136. .img__btn {
  137. overflow: hidden;
  138. z-index: 2;
  139. position: relative;
  140. width: 100px;
  141. height: 36px;
  142. margin: 0 auto;
  143. background: transparent;
  144. color: #fff;
  145. text-transform: uppercase;
  146. font-size: 15px;
  147. cursor: pointer;
  148. }
  149. .img__btn:after {
  150. content: '';
  151. z-index: 2;
  152. position: absolute;
  153. left: 0;
  154. top: 0;
  155. width: 100%;
  156. height: 100%;
  157. border: 2px solid #fff;
  158. border-radius: 30px;
  159. }
  160. .img__btn span {
  161. position: absolute;
  162. left: 0;
  163. top: 0;
  164. display: flex;
  165. justify-content: center;
  166. align-items: center;
  167. width: 100%;
  168. height: 100%;
  169. transition: -webkit-transform 0.6s;
  170. transition: transform 0.6s;
  171. transition: transform 0.6s, -webkit-transform 0.6s;
  172. }
  173. .img__btn span.m--in {
  174. -webkit-transform: translateY(-72px);
  175. transform: translateY(-72px);
  176. }
  177. .content.s--signup .img__btn span.m--in {
  178. -webkit-transform: translateY(0);
  179. transform: translateY(0);
  180. }
  181. .content.s--signup .img__btn span.m--up {
  182. -webkit-transform: translateY(72px);
  183. transform: translateY(72px);
  184. }
  185. h2 {
  186. width: 100%;
  187. font-size: 26px;
  188. text-align: center;
  189. }
  190. label {
  191. display: block;
  192. width: 260px;
  193. margin: 25px auto 0;
  194. text-align: center;
  195. }
  196. label span {
  197. font-size: 12px;
  198. color: #909399;
  199. text-transform: uppercase;
  200. }
  201. input {
  202. display: block;
  203. width: 100%;
  204. margin-top: 5px;
  205. padding-bottom: 5px;
  206. font-size: 16px;
  207. border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  208. text-align: center;
  209. }
  210. .forgot-pass {
  211. margin-top: 15px;
  212. text-align: center;
  213. font-size: 12px;
  214. color: #cfcfcf;
  215. }
  216. .forgot-pass a {
  217. color: #cfcfcf;
  218. }
  219. .submit {
  220. margin-top: 40px;
  221. margin-bottom: 20px;
  222. background: #d4af7a;
  223. text-transform: uppercase;
  224. }
  225. .fb-btn {
  226. border: 2px solid #d3dae9;
  227. color: #8fa1c7;
  228. }
  229. .fb-btn span {
  230. font-weight: bold;
  231. color: #455a81;
  232. }
  233. .sign-in {
  234. transition-timing-function: ease-out;
  235. }
  236. .content.s--signup .sign-in {
  237. transition-timing-function: ease-in-out;
  238. transition-duration: 0.6s;
  239. -webkit-transform: translate3d(640px, 0, 0);
  240. transform: translate3d(640px, 0, 0);
  241. }
  242. .sign-up {
  243. -webkit-transform: translate3d(-900px, 0, 0);
  244. transform: translate3d(-900px, 0, 0);
  245. }
  246. .content.s--signup .sign-up {
  247. -webkit-transform: translate3d(0, 0, 0);
  248. transform: translate3d(0, 0, 0);
  249. }