2.2K views
CSSAdd prefixes
1.form_container { 2 width: fit-content; 3 height: fit-content; 4 display: flex; 5 flex-direction: column; 6 align-items: center; 7 justify-content: center; 8 gap: 15px; 9 padding: 50px 40px 20px 40px; 10 background-color: #ffffff; 11 box-shadow: 0px 106px 42px rgba(0, 0, 0, 0.01), 12 0px 59px 36px rgba(0, 0, 0, 0.05), 0px 26px 26px rgba(0, 0, 0, 0.09), 13 0px 7px 15px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1); 14 border-radius: 11px; 15 font-family: "Inter", sans-serif; 16} 17 18.logo_container { 19 box-sizing: border-box; 20 width: 80px; 21 height: 80px; 22 background: linear-gradient(180deg, rgba(248, 248, 248, 0) 50%, #F8F8F888 100%); 23 border: 1px solid #F7F7F8; 24 filter: drop-shadow(0px 0.5px 0.5px #EFEFEF) drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5)); 25 border-radius: 11px; 26} 27 28.title_container { 29 display: flex; 30 flex-direction: column; 31 align-items: center; 32 justify-content: center; 33 gap: 10px; 34} 35 36.title { 37 margin: 0; 38 font-size: 1.25rem; 39 font-weight: 700; 40 color: #212121; 41} 42 43.subtitle { 44 font-size: 0.725rem; 45 max-width: 80%; 46 text-align: center; 47 line-height: 1.1rem; 48 color: #8B8E98 49} 50 51.input_container { 52 width: 100%; 53 height: fit-content; 54 position: relative; 55 display: flex; 56 flex-direction: column; 57 gap: 5px; 58} 59 60.icon { 61 width: 20px; 62 position: absolute; 63 z-index: 99; 64 left: 12px; 65 bottom: 9px; 66} 67 68.input_label { 69 font-size: 0.75rem; 70 color: #8B8E98; 71 font-weight: 600; 72} 73 74.input_field { 75 width: auto; 76 height: 40px; 77 padding: 0 0 0 40px; 78 border-radius: 7px; 79 outline: none; 80 border: 1px solid #e5e5e5; 81 filter: drop-shadow(0px 1px 0px #efefef) 82 drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5)); 83 transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1); 84} 85 86.input_field:focus { 87 border: 1px solid transparent; 88 box-shadow: 0px 0px 0px 2px #242424; 89 background-color: transparent; 90} 91 92.sign-in_btn { 93 width: 100%; 94 height: 40px; 95 border: 0; 96 background: #115DFC; 97 border-radius: 7px; 98 outline: none; 99 color: #ffffff; 100 cursor: pointer; 101} 102 103.sign-in_ggl { 104 width: 100%; 105 height: 40px; 106 display: flex; 107 align-items: center; 108 justify-content: center; 109 gap: 10px; 110 background: #ffffff; 111 border-radius: 7px; 112 outline: none; 113 color: #242424; 114 border: 1px solid #e5e5e5; 115 filter: drop-shadow(0px 1px 0px #efefef) 116 drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5)); 117 cursor: pointer; 118} 119 120.sign-in_apl { 121 width: 100%; 122 height: 40px; 123 display: flex; 124 align-items: center; 125 justify-content: center; 126 gap: 10px; 127 background: #212121; 128 border-radius: 7px; 129 outline: none; 130 color: #ffffff; 131 border: 1px solid #e5e5e5; 132 filter: drop-shadow(0px 1px 0px #efefef) 133 drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5)); 134 cursor: pointer; 135} 136 137.separator { 138 width: 100%; 139 display: flex; 140 align-items: center; 141 justify-content: center; 142 gap: 30px; 143 color: #8B8E98; 144} 145 146.separator .line { 147 display: block; 148 width: 100%; 149 height: 1px; 150 border: 0; 151 background-color: #e8e8e8; 152} 153 154.note { 155 font-size: 0.75rem; 156 color: #8B8E98; 157 text-decoration: underline; 158}
HTML
1<form class="form_container"> 2 <div class="logo_container"></div> 3 <div class="title_container"> 4 <p class="title">Login to your Account</p> 5 <span class="subtitle">Get started with our app, just create an account and enjoy the experience.</span> 6 </div> 7 <br> 8 <div class="input_container"> 9 <label class="input_label" for="email_field">Email</label> 10 <svg fill="none" viewBox="0 0 24 24" height="24" width="24" xmlns="http://www.w3.org/2000/svg" class="icon"> 11 <path stroke-linejoin="round" stroke-linecap="round" stroke-width="1.5" stroke="#141B34" d="M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5"></path> 12 <path stroke-linejoin="round" stroke-width="1.5" stroke="#141B34" d="M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z"></path> 13 </svg> 14 <input placeholder="[email protected]" title="Inpit title" name="input-name" type="text" class="input_field" id="email_field"> 15 </div> 16 <div class="input_container"> 17 <label class="input_label" for="password_field">Password</label> 18 <svg fill="none" viewBox="0 0 24 24" height="24" width="24" xmlns="http://www.w3.org/2000/svg" class="icon"> 19 <path stroke-linecap="round" stroke-width="1.5" stroke="#141B34" d="M18 11.0041C17.4166 9.91704 16.273 9.15775 14.9519 9.0993C13.477 9.03404 11.9788 9 10.329 9C8.67911 9 7.18091 9.03404 5.70604 9.0993C3.95328 9.17685 2.51295 10.4881 2.27882 12.1618C2.12602 13.2541 2 14.3734 2 15.5134C2 16.6534 2.12602 17.7727 2.27882 18.865C2.51295 20.5387 3.95328 21.8499 5.70604 21.9275C6.42013 21.9591 7.26041 21.9834 8 22"></path> 20 <path stroke-linejoin="round" stroke-linecap="round" stroke-width="1.5" stroke="#141B34" d="M6 9V6.5C6 4.01472 8.01472 2 10.5 2C12.9853 2 15 4.01472 15 6.5V9"></path> 21 <path fill="#141B34" d="M21.2046 15.1045L20.6242 15.6956V15.6956L21.2046 15.1045ZM21.4196 16.4767C21.7461 16.7972 22.2706 16.7924 22.5911 16.466C22.9116 16.1395 22.9068 15.615 22.5804 15.2945L21.4196 16.4767ZM18.0228 15.1045L17.4424 14.5134V14.5134L18.0228 15.1045ZM18.2379 18.0387C18.5643 18.3593 19.0888 18.3545 19.4094 18.028C19.7299 17.7016 19.7251 17.1771 19.3987 16.8565L18.2379 18.0387ZM14.2603 20.7619C13.7039 21.3082 12.7957 21.3082 12.2394 20.7619L11.0786 21.9441C12.2794 23.1232 14.2202 23.1232 15.4211 21.9441L14.2603 20.7619ZM12.2394 20.7619C11.6914 20.2239 11.6914 19.358 12.2394 18.82L11.0786 17.6378C9.86927 18.8252 9.86927 20.7567 11.0786 21.9441L12.2394 20.7619ZM12.2394 18.82C12.7957 18.2737 13.7039 18.2737 14.2603 18.82L15.4211 17.6378C14.2202 16.4587 12.2794 16.4587 11.0786 17.6378L12.2394 18.82ZM14.2603 18.82C14.8082 19.358 14.8082 20.2239 14.2603 20.7619L15.4211 21.9441C16.6304 20.7567 16.6304 18.8252 15.4211 17.6378L14.2603 18.82ZM20.6242 15.6956L21.4196 16.4767L22.5804 15.2945L21.785 14.5134L20.6242 15.6956ZM15.4211 18.82L17.8078 16.4767L16.647 15.2944L14.2603 17.6377L15.4211 18.82ZM17.8078 16.4767L18.6032 15.6956L17.4424 14.5134L16.647 15.2945L17.8078 16.4767ZM16.647 16.4767L18.2379 18.0387L19.3987 16.8565L17.8078 15.2945L16.647 16.4767ZM21.785 14.5134C21.4266 14.1616 21.0998 13.8383 20.7993 13.6131C20.4791 13.3732 20.096 13.1716 19.6137 13.1716V14.8284C19.6145 14.8284 19.619 14.8273 19.6395 14.8357C19.6663 14.8466 19.7183 14.8735 19.806 14.9391C19.9969 15.0822 20.2326 15.3112 20.6242 15.6956L21.785 14.5134ZM18.6032 15.6956C18.9948 15.3112 19.2305 15.0822 19.4215 14.9391C19.5091 14.8735 19.5611 14.8466 19.5879 14.8357C19.6084 14.8273 19.6129 14.8284 19.6137 14.8284V13.1716C19.1314 13.1716 18.7483 13.3732 18.4281 13.6131C18.1276 13.8383 17.8008 14.1616 17.4424 14.5134L18.6032 15.6956Z"></path> 22 </svg> 23 <input placeholder="Password" title="Inpit title" name="input-name" type="password" class="input_field" id="password_field"> 24 </div> 25 <button title="Sign In" type="submit" class="sign-in_btn"> 26 <span>Sign In</span> 27 </button> 28 29 <div class="separator"> 30 <hr class="line"> 31 <span>Or</span> 32 <hr class="line"> 33 </div> 34 <button title="Sign In" type="submit" class="sign-in_ggl"> 35 <svg height="18" width="18" viewBox="0 0 32 32" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"> 36 <defs> 37 <path d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z" id="A"></path> 38 </defs> 39 <clipPath id="B"> 40 41 </clipPath> 42 <g transform="matrix(.727273 0 0 .727273 -.954545 -1.45455)"> 43 <path fill="#fbbc05" clip-path="url(#B)" d="M0 37V11l17 13z"></path> 44 <path fill="#ea4335" clip-path="url(#B)" d="M0 11l17 13 7-6.1L48 14V0H0z"></path> 45 <path fill="#34a853" clip-path="url(#B)" d="M0 37l30-23 7.9 1L48 0v48H0z"></path> 46 <path fill="#4285f4" clip-path="url(#B)" d="M48 48L17 24l-4-3 35-10z"></path> 47 </g> 48 </svg> 49 <span>Sign In with Google</span> 50 </button> 51 <button title="Sign In" type="submit" class="sign-in_apl"> 52 <svg preserveAspectRatio="xMidYMid" version="1.1" viewBox="0 0 256 315" height="20px" width="16px" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"> 53 <g> 54 <path fill="#ffffff" d="M213.803394,167.030943 C214.2452,214.609646 255.542482,230.442639 256,230.644727 C255.650812,231.761357 249.401383,253.208293 234.24263,275.361446 C221.138555,294.513969 207.538253,313.596333 186.113759,313.991545 C165.062051,314.379442 158.292752,301.507828 134.22469,301.507828 C110.163898,301.507828 102.642899,313.596301 82.7151126,314.379442 C62.0350407,315.16201 46.2873831,293.668525 33.0744079,274.586162 C6.07529317,235.552544 -14.5576169,164.286328 13.147166,116.18047 C26.9103111,92.2909053 51.5060917,77.1630356 78.2026125,76.7751096 C98.5099145,76.3877456 117.677594,90.4371851 130.091705,90.4371851 C142.497945,90.4371851 165.790755,73.5415029 190.277627,76.0228474 C200.528668,76.4495055 229.303509,80.1636878 247.780625,107.209389 C246.291825,108.132333 213.44635,127.253405 213.803394,167.030988 M174.239142,50.1987033 C185.218331,36.9088319 192.607958,18.4081019 190.591988,0 C174.766312,0.636050225 155.629514,10.5457909 144.278109,23.8283506 C134.10507,35.5906758 125.195775,54.4170275 127.599657,72.4607932 C145.239231,73.8255433 163.259413,63.4970262 174.239142,50.1987249"></path> 55 </g> 56 </svg> 57 <span>Sign In with Apple</span> 58 </button> 59 <p class="note">Terms of use & Conditions</p> 60</form>