@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');



body {
    /* background: linear-gradient(45deg, #075ac1, #4a00e0); */
    background: url("./login.webp");
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-body {
    margin-top: 10%;
}
div.container {
    background: white;
    min-width: 20rem;
    min-height: 25rem;
    padding: 2rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

div h2 {
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
}

div .notice {
    color: grey;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
}

div h2::before {
    content: '';
    position: absolute;
    height: 4px;
    width: 25px;
    bottom: 1px;
    left: 0;
    border-radius: 8px;
    background: linear-gradient(45deg, #000, #000);
}

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(45deg, #8e2de2, #4a00e0);
    transform: scaleX(0);
    transition: all .3s ease-in-out;
    transform-origin: left;
}

.input-field input:focus ~ .underline::after {
    transform: scaleX(1);
}

.input-field p{
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
   
}

.input-field p label {
    display: inline-block;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    width: 100%;
    margin-bottom: 1rem;
    font-family: '微软雅黑', 'Courier New', Courier, monospace;
    font-weight: 600;
}

.helptext{
    color: grey;
    font-family: '微软雅黑', 'Courier New', Courier, monospace;
}

.input-field p input {
    border: 1px solid #000;
    border-top:none;
    border-left:none;
    border-right:none;
    outline: none;
    font-size: 1.2rem;
    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: 2rem;
    padding: 0.4rem;
    width: 100%;
    /* background: linear-gradient(to left, #4776E6, #8e54e9); */
    background: linear-gradient(to right, #464141, #464141);
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    font-weight: 300;
    border-radius: 4px;
    transition: all 0.3s ease;
}

form input[type="submit"]:hover {
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #000, #000)
}

.errorlist {
    color: red
}