@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700;1,800&family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
);

*{
    box-sizing: border-box;
}

body{
    background: #9b59b6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}
.container{
    background: #fff;
    border-radius: 5px;
    box-shadow:0 2px 5px rgba(0 0 0 0.3) ;
    width: 400px;

    overflow: hidden;
}

.header{
    background:#f7f7f7 ;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 40px;
}

.header h2{
    margin: 0;
}

.form{
    padding: 30px 40px;
}

.form-control{
    margin-bottom:10px ;
    padding-bottom: 20px;
    position: relative;
}

.form-control label{
    display: inline-block;
    margin-bottom: 5px ;
}

.form-control input{
    border: 2px solid #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    display: block;
    font-family: inherit;
    width: 100%;
    padding: 10px;
}

.form-control.success input{
    border-color: #2ecc71;
}

.form-control.error input{
    border-color: #e74c3c;
}

.form-control i{
    position: absolute;
    top: 40px;
    right: 10px;
    visibility: hidden;
}

.form-control.success i.fa-circle-check {
    visibility: visible;
    color:#2ecc71 ;
}

.form-control.error i.fa-exclamation{
    visibility: visible;
    color:#e74c3c ;
}

.form-control small{
    visibility: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
}

.form-control.error small{
    color: #e74c3c;
    visibility: visible;
}

.form button{
    background: #8e44ed;
    border: 2px solid #8e44ed;
    color: #fff;
    display: block;
    padding: 10px;
    width: 100%;
    font-size:16px;
    font-family: inherit;
    border-radius: 5px;
}