.wave { position: fixed; bottom: 0; left: 0; z-index: -1; height: 100%; } .login-container { display: grid; padding: 0 2rem; width: 100vw; height: 100vh; grid-template-columns: repeat(2, 1fr); grid-gap: 18rem; } .img { display: flex; justify-content: flex-end; align-items: center; } .img img { width: 500px; } .login-box { display: flex; align-items: center; text-align: center; } .login-form { width: 360px; } .avatar { width: 350px; height: 80px; } .login-form h2 { text-transform: uppercase; margin: 15px 0; color: #999999; font: bold 200% Consolas, Monaco, monospace; } .input-group { position: relative; display: grid; grid-template-columns: 7% 93%; margin: 25px 0; padding: 5px 0; border-bottom: 2px solid #d9d9d9; } .input-group:nth-child(1) { margin-bottom: 4px; } .input-group::before, .input-group::after { content: ''; position: absolute; bottom: -2px; width: 0; height: 2px; background-color: #c5d3f7; transition: 0.5s; } .input-group::after { right: 50%; } .input-group::before { left: 50%; } .icon { display: flex; justify-content: center; align-items: center; } .icon svg { color: #d9d9d9; transition: 0.5s; } .input-group > div { position: relative; height: 45px; } .input-group > div > h5 { position: absolute; top: 50%; left: 10px; margin: 0; padding: 0; font-size: 18px; color: #d9d9d9; transition: 0.3s; transform: translateY(-50%); } .input-group.focus .icon svg { color: #5392f0; } .input-group.focus div h5 { top: -5px; font-size: 15px; } .input-group.focus::after, .input-group.focus::before { width: 50%; } .input { position: absolute; top: 0; left: 0; padding: 0.5rem 0.3rem; width: 100%; height: 100%; font-size: 1.2rem; font-family: Roboto, sans-serif; border: none; color: #555555; background: none; outline: none; } input:-webkit-autofill, input:-internal-autofill-selected, textarea:-webkit-autofill, select:-webkit-autofill { background-color: transparent !important; box-shadow: 0 0 0 1000px transparent inset !important; transition: background-color 50000s ease-in-out 0s; -webkit-text-fill-color: inherit !important; background-image: none; } a { display: block; font-size: 0.9rem; text-align: right; text-decoration: none; color: #999999; transition: 0.3s; } a:hover { color: #5392f0; } .btn { display: block; margin: 1rem 0; width: 100%; height: 50px; font-size: 1.2rem; font-family: Roboto, sans-serif; border: none; border-radius: 25px; color: #ffffff; background-size: 200%; outline: none; transition: 0.5s; background-image: linear-gradient(to right, #567dbe, #5392f0, #567dbe); cursor: pointer; text-transform: uppercase; } .btn:hover { background-position: right; } .copyright { position: absolute; bottom: 2px; width: 100%; height: 50px; font-size: 18px; font-family: Roboto, sans-serif; text-align: center; color: #5392f0; } @media screen and (max-width: 1080px) { .login-container { grid-gap: 9rem; } } @media screen and (max-width: 1024px) { .login-form { width: 290px; } .login-form h2 { margin: 8px 0; font-size: 2.4rem; } .img img { width: 360px; } .avatar { width: 280px; height: 80px; } } @media screen and (max-width: 768px) { .wave { display: none; } .img { display: none; } .login-container { grid-template-columns: 1fr; } .login-box { justify-content: center; } }