@font-face {
    font-family: 'Tanha';
    src: url("font/Tanha.ttf")
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Tanha';
	font-size: 25px;
    direction: rtl;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #fead06, #c00def);
}

.container {
    position: relative;
    padding: 70px 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.container h2 {
    color: #111;
    margin-bottom: 45px;
    line-height: 1em;
    font-weight: 500;
    padding-right: 10px;
    border-right: 5px solid red;
}

.container .inputbox {
    position: relative;
    width: 300px;
    height: 46px;
    margin-bottom: 35px;
}

.container .inputbox:last-child {
    margin-bottom: 0;
}

.container .inputbox input {
    position: absolute;
    top: 0;
    left: 10px;
    width: 100%;
    border: 2px solid #111;
    background: transparent;
    padding: 10px;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
    font-size: 16px;
    color: #111;
    font-weight: 300;
}

.container .inputbox span {
    position: absolute;
    top: 1px;
    right: 1px;
    padding: 10px;
    display: inline-block;
    font-size: 16px;
    color: #111;
    font-weight: 300;
    transition: 0.5s;
    pointer-events: none;
}

.container .inputbox input:focus span {
    transform: translateY(-32px) translateY(-32px);
}

.container .inputbox input[type="submit"] {
    background: #2196f3;
    color: #fff;
    border: none;
    max-width: 120px;
    position: absolute;
    right: 0;
    cursor: pointer;
    font-weight: 500;
}

.container .inputbox input[type="submit"]:hover {
    background: #e91e63;
}