@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    border: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(85deg, #0b5ac1, #a8ccfb);
    background-repeat: no-repeat;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

main.container {
    background: white;
    min-width: 320px;
    width: auto;
    min-height: 40vh;
    padding: 2rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-left: 2%;
    margin-right: 2%;

}

.title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin-top: -1rem;
    position: relative;
    left: 0;
    gap: 7px;

}

.title img{
    margin-left: 0px;
    max-width: 80px;
    width: auto;
    max-height: 80px;
    padding: 0;
}

.title h2 {
    font-weight: 600;
    position: relative;
    margin-top: 1rem;
}

.title h2::before {
    content: '';
    position: absolute;
    height: 4px;
    width: 25px;
    top: 2rem;    
    left: 0;
    border-radius: 8px;
    background: linear-gradient(45deg, #166de0, #6dacff);
}

main h3{
    text-align: center;
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
}

.input-field {
    position: relative;
}

form .input-field:first-child {
    margin-bottom: 1.5rem;
}

.input-field .underline::before {
    content: '';
    position: absolute;
    height: 1px;
    width: 100%;
    bottom: -5px;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
}

.input-field .underline::after {
    content: '';
    position: absolute;
    height: 1px;
    width: 100%;
    bottom: -5px;
    left: 0;
    background: linear-gradient(85deg, #166de0, #6dacff);
    transform: scaleX(0);
    transition: all .3s ease-in-out;
    transform-origin: left;
}

.input-field input:focus ~ .underline::after {
    transform: scaleX(1);
}

.input-field input {
    outline: none;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    width: 100%;
}

.input-field input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

form input[type="submit"] {
    margin-top: 1rem;
    padding: 0.4rem;
    width: 100%;
    background: linear-gradient(to left, #166de0, #6dacff);
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.7s ease;
}

form input[type="submit"]:hover {
    letter-spacing: 0.5px;
    background: linear-gradient(to top, #166de0, #6dacff);
}

.input-help{
    font-size: 0.7rem;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 5%;
}

.input-help a{
    text-decoration: none;
    color: rgba(0, 0, 0, 0.8);
}

.input-help a:hover{
    text-decoration: underline;
    color: rgba(0, 0, 0, 1);
}
