@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

:root {
    --red: #ff0000;
    --purple: #8e44ad;
    --blue: #3162a5;
    --main-color: #3162a5;
    --accent-color: #229bff;
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "Montserrat";
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    height: 100%;
    background-image: linear-gradient(
        120deg,
        var(--main-color),
        var(--accent-color)
    );
    background-attachment: fixed;
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22.5em;
    background: #fff;
    height: 37.5em;
    padding: 40px 40px;
    border-radius: 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.3);
}

img {
    margin: 0% 50%;
    transform: translate(-50%, -0%);
}

.login-form h1 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.txtb {
    border-bottom: 2px solid #adadad;
    position: relative;
    margin: 30px 0;
}

.txtb input {
    font-size: 15px;
    color: #333;
    border: none;
    width: 100%;
    outline: none;
    background: none;
    padding: 0 5px;
    height: 40px;
}

.txtb span::before {
    content: attr(data-placeholder);
    position: absolute;
    top: 50%;
    left: 5px;
    color: #adadad;
    transform: translateY(-50%);
    z-index: -1;
    transition: 0.5s;
}

.txtb span::after {
    content: "";
    float: left;
    position: relative;
    width: 0%;
    height: 2px;
    background: linear-gradient(120deg, var(--main-color), var(--accent-color));
    transition: 0.5s;
}

.focus + span::before {
    top: -5px;
}
.focus + span::after {
    width: 100%;
}

.logbtn {
    display: block;
    width: 100%;
    height: 4em;
    border: none;
    background: linear-gradient(
        120deg,
        var(--main-color),
        var(--accent-color),
        var(--main-color)
    );
    background-size: 200%;
    border-radius: 35px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.35);
    color: #fff;
    outline: none;
    cursor: pointer;
    transition: 0.5s;
}

.logbtn:hover {
    background-position: right;
}

p {
    font-size: 1em;
    line-height: 1.2em;
    text-align: center;
}

.red {
    margin-top: 60px;
    text-align: center;
    font-size: 13px;
    color: var(--red);
}

@media only screen and (max-width: 380px) {
    .login-form {
        width: 18em;
        background: #fff;
        height: 32em;
        padding: 30px 40px;
        border-radius: 30px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.3);
    }

    .login-form h1 {
        text-align: center;
        margin-bottom: 40px;
    }
}

@media (prefers-color-scheme: dark) {
}
