Advertisement
Guest User

Untitled

a guest
Jan 19th, 2024
29
0
56 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. // login.scoped.scss
  2.  
  3.  
  4.  
  5. @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");
  6.  
  7. * {
  8. margin: 0;
  9. padding: 0;
  10. box-sizing: border-box;
  11. }
  12.  
  13.  
  14. body,
  15. input {
  16. font-family: "Poppins", sans-serif;
  17.  
  18. }
  19.  
  20. .container {
  21. position: relative;
  22.  
  23.  
  24.  
  25. width: 100%;
  26. background-color: #1E1E1E;
  27. min-height: 100vh;
  28. overflow: hidden;
  29. }
  30.  
  31. .forms-container {
  32. position: absolute;
  33. width: 100%;
  34. height: 100%;
  35. top: 0;
  36. left: 0;
  37. }
  38.  
  39. .signin-signup {
  40. position: absolute;
  41. top: 50%;
  42. transform: translate(-50%, -50%);
  43. left: 75%;
  44. width: 50%;
  45. transition: 1s 0.7s ease-in-out;
  46. display: grid;
  47. grid-template-columns: 1fr;
  48. z-index: 5;
  49. }
  50.  
  51. form {
  52. display: flex;
  53. align-items: center;
  54. justify-content: center;
  55. flex-direction: column;
  56. padding: 0rem 5rem;
  57. transition: all 0.2s 0.7s;
  58. overflow: hidden;
  59. grid-column: 1 / 2;
  60. grid-row: 1 / 2;
  61. }
  62.  
  63. form.sign-up-form {
  64. opacity: 0;
  65. z-index: 1;
  66. }
  67.  
  68. form.sign-in-form {
  69. z-index: 2;
  70. }
  71.  
  72. .title {
  73. font-size: 2.2rem;
  74. color: #fff;
  75. margin-bottom: 10px;
  76. }
  77.  
  78. .input-field {
  79. max-width: 380px;
  80. width: 100%;
  81. background-color: #f0f0f0;
  82. margin: 10px 0;
  83. height: 55px;
  84. border-radius: 55px;
  85. display: grid;
  86. grid-template-columns: 15% 85%;
  87. padding: 0 0.4rem;
  88. position: relative;
  89. }
  90.  
  91. .input-field i {
  92. text-align: center;
  93. line-height: 55px;
  94. color: #acacac;
  95. transition: 0.5s;
  96. font-size: 1.1rem;
  97. }
  98.  
  99. .input-field input {
  100. background: none;
  101. outline: none;
  102. border: none;
  103. line-height: 1;
  104. font-weight: 600;
  105. font-size: 1.1rem;
  106.  
  107. border-top-right-radius: 55px;
  108. border-bottom-right-radius: 55px;
  109. color: #333;
  110. }
  111.  
  112. .input-field input::placeholder {
  113. color: #aaa;
  114. font-weight: 500;
  115. }
  116.  
  117. .social-text {
  118. padding: 0.7rem 0;
  119. font-size: 1rem;
  120. color: #fff;
  121. }
  122.  
  123. .social-media {
  124. display: flex;
  125. justify-content: center;
  126. }
  127.  
  128. .social-icon {
  129. height: 46px;
  130. width: 46px;
  131. display: flex;
  132. justify-content: center;
  133. align-items: center;
  134. margin: 0 0.45rem;
  135. color: #fff;
  136. border-radius: 50%;
  137. border: 1px solid #fff;
  138. text-decoration: none;
  139. font-size: 1.1rem;
  140. transition: 0.3s;
  141. }
  142.  
  143. .social-icon:hover {
  144. color: #EA1179;
  145. border-color: #EA1179;
  146. }
  147.  
  148. .btn {
  149. width: 150px;
  150. background-color: #EA1179;
  151. border: none;
  152. outline: none;
  153. height: 49px;
  154. border-radius: 49px;
  155. color: #fff;
  156. text-transform: uppercase;
  157. font-weight: 600;
  158. margin: 10px 0;
  159. cursor: pointer;
  160. transition: 0.5s;
  161. }
  162.  
  163. .btn:hover {
  164. background-color: #C2075A;
  165. }
  166.  
  167.  
  168.  
  169. .panels-container {
  170. position: absolute;
  171. height: 100%;
  172. width: 100%;
  173. top: 0;
  174. left: 0;
  175. display: grid;
  176. grid-template-columns: repeat(2, 1fr);
  177. }
  178.  
  179. .container:before {
  180. content: "";
  181. position: absolute;
  182. height: 2000px;
  183. width: 2000px;
  184. top: -10%;
  185. right: 48%;
  186. transform: translateY(-50%);
  187. background-image: linear-gradient(-45deg, #EA1179 0%, #75083c 100%);
  188. transition: 1.8s ease-in-out;
  189. border-radius: 50%;
  190. z-index: 6;
  191. }
  192.  
  193. .image {
  194. width: 100%;
  195. transition: transform 1.1s ease-in-out;
  196. transition-delay: 0.4s;
  197. }
  198.  
  199. .panel {
  200. display: flex;
  201. flex-direction: column;
  202. align-items: flex-end;
  203. justify-content: space-around;
  204. text-align: center;
  205. z-index: 6;
  206. }
  207.  
  208. .left-panel {
  209. pointer-events: all;
  210. padding: 3rem 17% 2rem 12%;
  211. }
  212.  
  213. .right-panel {
  214. pointer-events: none;
  215. padding: 3rem 12% 2rem 17%;
  216. }
  217.  
  218. .panel .content {
  219. color: #fff;
  220. transition: transform 0.9s ease-in-out;
  221. transition-delay: 0.6s;
  222. }
  223.  
  224. .panel h3 {
  225. font-weight: 600;
  226. line-height: 1;
  227. font-size: 1.5rem;
  228. }
  229.  
  230. .panel p {
  231. font-size: 0.95rem;
  232. padding: 0.7rem 0;
  233. }
  234.  
  235. .btn.transparent {
  236. margin: 0;
  237. background: none;
  238. border: 2px solid #fff;
  239. width: 130px;
  240. height: 41px;
  241. font-weight: 600;
  242. font-size: 0.8rem;
  243.  
  244. transition: background-color 0.5s ease-out, color 0.5s ease-in; /* Combine transitions */
  245. }
  246.  
  247.  
  248.  
  249.  
  250. .btn.transparent:hover {
  251. background: #fff;
  252. color: #1E1E1E;
  253.  
  254.  
  255.  
  256. }
  257.  
  258.  
  259. .right-panel .image,
  260. .right-panel .content {
  261. transform: translateX(800px);
  262. }
  263.  
  264. /* ANIMATION */
  265.  
  266. .container.sign-up-mode:before {
  267. transform: translate(100%, -50%);
  268. right: 52%;
  269. }
  270.  
  271. .container.sign-up-mode .left-panel .image,
  272. .container.sign-up-mode .left-panel .content {
  273. transform: translateX(-800px);
  274. }
  275.  
  276. .container.sign-up-mode .signin-signup {
  277. left: 25%;
  278. }
  279.  
  280. .container.sign-up-mode form.sign-up-form {
  281. opacity: 1;
  282. z-index: 2;
  283. }
  284.  
  285. .container.sign-up-mode form.sign-in-form {
  286. opacity: 0;
  287. z-index: 1;
  288. }
  289.  
  290. .container.sign-up-mode .right-panel .image,
  291. .container.sign-up-mode .right-panel .content {
  292. transform: translateX(0%);
  293. }
  294.  
  295. .container.sign-up-mode .left-panel {
  296. pointer-events: none;
  297. }
  298.  
  299. .container.sign-up-mode .right-panel {
  300. pointer-events: all;
  301. }
  302.  
  303. @media (max-width: 870px) {
  304. .container {
  305. min-height: 800px;
  306. height: 100vh;
  307. }
  308. .signin-signup {
  309. width: 100%;
  310. top: 95%;
  311. transform: translate(-50%, -100%);
  312. transition: 1s 0.8s ease-in-out;
  313. }
  314.  
  315. .signin-signup,
  316. .container.sign-up-mode .signin-signup {
  317. left: 50%;
  318. }
  319.  
  320. .panels-container {
  321. grid-template-columns: 1fr;
  322. grid-template-rows: 1fr 2fr 1fr;
  323. }
  324.  
  325. .panel {
  326. flex-direction: row;
  327. justify-content: space-around;
  328. align-items: center;
  329. padding: 2.5rem 8%;
  330. grid-column: 1 / 2;
  331. }
  332.  
  333. .right-panel {
  334. grid-row: 3 / 4;
  335. }
  336.  
  337. .left-panel {
  338. grid-row: 1 / 2;
  339. }
  340.  
  341. .image {
  342. width: 200px;
  343. transition: transform 0.9s ease-in-out;
  344. transition-delay: 0.6s;
  345. }
  346.  
  347. .panel .content {
  348. padding-right: 15%;
  349. transition: transform 0.9s ease-in-out;
  350. transition-delay: 0.8s;
  351. }
  352.  
  353. .panel h3 {
  354. font-size: 1.2rem;
  355. }
  356.  
  357. .panel p {
  358. font-size: 0.7rem;
  359. padding: 0.5rem 0;
  360. }
  361.  
  362. .btn.transparent {
  363. width: 110px;
  364. height: 35px;
  365. font-size: 0.7rem;
  366. }
  367.  
  368. .container:before {
  369. width: 1500px;
  370. height: 1500px;
  371. transform: translateX(-50%);
  372. left: 30%;
  373. bottom: 68%;
  374. right: initial;
  375. top: initial;
  376. transition: 2s ease-in-out;
  377. }
  378.  
  379. .container.sign-up-mode:before {
  380. transform: translate(-50%, 100%);
  381. bottom: 32%;
  382. right: initial;
  383. }
  384.  
  385. .container.sign-up-mode .left-panel .image,
  386. .container.sign-up-mode .left-panel .content {
  387. transform: translateY(-300px);
  388. }
  389.  
  390. .container.sign-up-mode .right-panel .image,
  391. .container.sign-up-mode .right-panel .content {
  392. transform: translateY(0px);
  393. }
  394.  
  395. .right-panel .image,
  396. .right-panel .content {
  397. transform: translateY(300px);
  398. }
  399.  
  400. .container.sign-up-mode .signin-signup {
  401. top: 5%;
  402. transform: translate(-50%, 0);
  403. }
  404. }
  405.  
  406. @media (max-width: 570px) {
  407. form {
  408. padding: 0 1.5rem;
  409. }
  410.  
  411. .image {
  412. display: none;
  413. }
  414. .panel .content {
  415. padding: 0.5rem 1rem;
  416. }
  417.  
  418.  
  419. .container {
  420. padding: 1.5rem;
  421. }
  422.  
  423. .container:before {
  424. bottom: 72%;
  425. left: 50%;
  426. }
  427.  
  428. .container.sign-up-mode:before {
  429. bottom: 28%;
  430. left: 50%;
  431. }
  432. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement