乐于分享
好东西不私藏

漂亮的css登录页面模板代码!!附源码!!

漂亮的css登录页面模板代码!!附源码!!

  效果展示  

  完整源码  

HTML
<!DOCTYPE html><html  ><head>  <metacharset="UTF-8">  <title>漂亮的css登录页面模板代码</title>  <linkrel='stylesheet'href='https://use.fontawesome.com/releases/v5.2.0/css/all.css'><linkrel='stylesheet'href='https://use.fontawesome.com/releases/v5.2.0/css/fontawesome.css'>    <linkrel="stylesheet"href="./style.css"></head><body><!-- partial:index.partial.html --><divclass="container">	<divclass="screen">		<divclass="screen__content">			<formclass="login">				<divclass="login__field">					<iclass="login__icon fas fa-user"></i>					<inputtype="text"class="login__input"placeholder="用户名 / Email">				</div>				<divclass="login__field">					<iclass="login__icon fas fa-lock"></i>					<inputtype="password"class="login__input"placeholder="密码">				</div>				<buttonclass="button login__submit">					<spanclass="button__text">立即登录</span>					<iclass="button__icon fas fa-chevron-right"></i>				</button>							</form>			<divclass="social-login">				<h3>第三方账号</h3>				<divclass="social-icons">					<ahref="#"class="social-login__icon fab fa-qq"></a>					<ahref="#"class="social-login__icon fab fa-weibo"></a>					<ahref="#"class="social-login__icon fab fa-twitter"></a>				</div>			</div>		</div>		<divclass="screen__background">			<spanclass="screen__background__shape screen__background__shape4"></span>			<spanclass="screen__background__shape screen__background__shape3"></span>					<spanclass="screen__background__shape screen__background__shape2"></span>			<spanclass="screen__background__shape screen__background__shape1"></span>		</div>			</div></div><!-- partial --></body></html>
style.CSS
@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');* {    box-sizing: border-box;    margin0;    padding0    font-family: Raleway, sans-serif;}body {    backgroundlinear-gradient(90deg#C7C5F4#776BCC);       }.container {    display: flex;    align-items: center;    justify-content: center;    min-height100vh;}.screen {           backgroundlinear-gradient(90deg#5D54A4#7C78B8);           position: relative;     height600px;    width360px;       box-shadow0px 0px 24px #5C5696;}.screen__content {    z-index1;    position: relative;     height100%;}.screen__background {           position: absolute;    top0;    left0;    right0;    bottom0;    z-index0;    -webkit-clip-pathinset(0 0 0 0);    clip-pathinset(0 0 0 0);  }.screen__background__shape {    transformrotate(45deg);    position: absolute;}.screen__background__shape1 {    height520px;    width520px;    background#FFF;       top: -50px;    right120px;       border-radius0 72px 0 0;}.screen__background__shape2 {    height220px;    width220px;    background#6C63AC;        top: -172px;    right0;       border-radius32px;}.screen__background__shape3 {    height540px;    width190px;    backgroundlinear-gradient(270deg#5D54A4#6A679E);    top: -24px;    right0;       border-radius32px;}.screen__background__shape4 {    height400px;    width200px;    background#7E7BB9;        top420px;    right50px;        border-radius60px;}.login {    width320px;    padding30px;    padding-top156px;}.login__field {    padding20px 0px;      position: relative; }.login__icon {    position: absolute;    top30px;    color#7875B5;}.login__input {    border: none;    border-bottom2px solid #D1D1D4;    background: none;    padding10px;    padding-left24px;    font-weight700;    width75%;    transition: .2s;}.login__input:active,.login__input:focus,.login__input:hover {    outline: none;    border-bottom-color#6A679E;}.login__submit {    background#fff;    font-size14px;    margin-top30px;    padding16px 20px;    border-radius26px;    border1px solid #D4D3E8;    text-transform: uppercase;    font-weight700;    display: flex;    align-items: center;    width100%;    color#4C489D;    box-shadow0px 2px 2px #5C5696;    cursor: pointer;    transition: .2s;}.login__submit:active,.login__submit:focus,.login__submit:hover {    border-color#6A679E;    outline: none;}.button__icon {    font-size24px;    margin-left: auto;    color#7875B5;}.social-login {     position: absolute;    height140px;    width160px;    text-align: center;    bottom0px;    right0px;    color#fff;}.social-icons {    display: flex;    align-items: center;    justify-content: center;}.social-login__icon {    padding20px 10px;    color#fff;    text-decoration: none;      text-shadow0px 0px 8px #7875B5;}.social-login__icon:hover {    transformscale(1.5);  }