@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-height: 100vh;
    background: #9d9ea3;
}

.wrapper {
    width: 400px;
    background: #ffffff;
    border-radius: 5px;
    padding: 40px 30px 50px 30px;
}

.wrapper header {
    font-size: 35px;
    font-weight: 600;
}

.wrapper form {
    margin: 40px 0;
}

form .field {
    width: 100%;
    margin-bottom: 20px;
}

form .field.shake {

    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        margin-left: 0;
    }

    20%,
    80% {
        margin-left: -12px;
    }

    40%,
    60% {
        margin-left: 12;
    }
}

form .field .input-area {
    position: relative;
}


form input {
    height: 50px;
    width: 100%;
    outline: none;
    padding: 0 45px;
    font-size: 18px;
    border: 1px solid #bfbfbf;
    border-radius: 5px;
    border-bottom-width: 2px;
}
form .field.error input{
    border-color: #dc3545;
}


form input::placeholder {
    color: #bfbfbf;
    font-size: 17px;
}

form .field i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

form .field .icon {
    left: 15px;
    color: #bfbfbf;
}

form .field .error-icon {
    right: 15px;
    color: #dc3545;
}

form .field .error-txt {
    color: #bc3545;
    margin-top: 5px;
    text-align: left;
}

form .field .error {
    display: none;
}

form .field.error .error {
    display: block;
}

form .pass-link {
    text-align: left;
    margin-top: -10px
}

.wrapper a {
    color: #3752d8;
    text-decoration: none;
}

.wrapper a:hover {
    text-decoration: underline;
}

form input[type="submit"] {
    margin-top: 30px;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    background: #5372F0;
    transition: background 0.2s ease;
}

form input[type="submit"]:hover {
    background: #2c2c;
}