@font-face {
	font-family: 'Yekan';
	src: url( '../fonts/Yekan.eot' );
	src: url( '../fonts/Yekan.eot?#iefix' ) format( 'embedded-opentype' ),
		url( '../fonts/Yekan.woff2' ) format( 'woff2' ),
		url( '../fonts/Yekan.woff' ) format( 'woff' ),
		url( '../fonts/Yekan.ttf' ) format( 'truetype' ),
		url( '../fonts/Yekan.svg#Yekan' ) format( 'svg' );
	font-weight: normal;
	font-style: normal;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Yekan";
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2a2a2a;
    /* background-image: url( './images/header.jpg' );
    background-attachment: fixed;
    background-position: center; */
}

.box{
    position: relative;
    width: 380px;
    height: 431px;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
}

.box::before{
    content: '';
    position: absolute;
    width: 380px;
    height: 431px;
    top: -60%;
    left: -60%;
    background: linear-gradient(0deg, transparent, #00e7ad, #00e7ad);
    animation: animate 8s linear infinite;
    transform-origin: bottom right;
}

.box::after{
    content: '';
    position: absolute;
    width: 380px;
    height: 431px;
    top: 60%;
    left: 60%;
    background: linear-gradient(0deg, #0096C9, #0096C9, transparent);
    animation: animate 8s linear infinite;
    transform-origin: top left;
}

@keyframes animate {
   0%{
    transform: rotate(0deg);
   }
   100%{
    transform: rotate(360deg);
   }
}

@keyframes animate2 {
    0%{
        color: #00e7ad;
    }
    50%{
        color: #0096C9;
    }
    100%{
     color: #00e7ad;
    }
 }

.form{
    position: absolute;
    inset: 2px;
    background: #2a2a2a;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    border-radius: 8px;
    user-select: none;
}

.form h2{
    color: #00e7ad;
    font-weight: 100;
    text-align: center;
    font-size: 32px;
    margin-top: 10px;
    margin-bottom: 20px;
    animation: animate2 8s linear infinite;
    /* background-image: url( './images/login2.png' ); */
    background-image: url( '../images/login.svg' );
    width: 316px;
    height: 71px;
    background-repeat: no-repeat;
    background-origin: content-box;
}

.inputbox{
    position: relative;
    width: 320px;
    margin-top: 35px;
}

.inputbox input{
    position: relative;
    width: 100%;
    /* padding: 10px 10px 10px; */
    padding-left: 42px;
    padding-right: 20px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 20px;
    z-index: 10;
    text-align: center;
}

.inputbox span{
    position: absolute;
    right: 0;
    padding: 10px 10px;
    color: #ffffff;
    font-size: 17px;
    transition: 500ms;
    margin-right: -10px;
    margin-top: -10px;
}

.inputbox input:valid ~ span,
.inputbox input:focus ~ span{
    color: #ffffff;
    transform: translateY(-34px);
    font-size: 15px;
}

.inputbox i{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #181818;
    z-index: 9;
    transition: 500ms;
    border-radius: 8px;
}

.inputbox input:valid ~ i,
.inputbox input:focus ~ i{
    height: 40px;
    border: solid;
    border-color: #383838;
    border-width: 1px;
}

.links{
    display: flex;
    justify-content: space-between;
}

.links a{
    text-decoration: none;
    font-size: 16px;
    margin: 30px;
    color: #0096C9;
}

.links a:nth-child(1){
    margin-right: 0;
}

.links a:nth-child(2){
    margin-left: 0;
}

.links a:hover{
    color: #00e7ad;
}

.links a:nth-child(2){
    color: #ffc800;
}

.links a:nth-child(2):hover{
    color: #ff8800;
}

input[type="submit"]{
    border: none;
    outline: none;
    background: #ffffff;
    /* padding: 5px 25px; */
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
}

input[type="submit"]:active{
    opacity: 0.8;
}

input[type="submit"]:hover{
    background: #d8f5ff;
}

img{
    position: relative;
    right: 286px;
    transform: translateY(-32px);
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 11;
    margin-bottom: -30px;
}

img.hide{
    background-image: url( './images/hide.svg' );
}