* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    width: 100vw;
    height: 100vh;
    background: #ededed;
}

.login-body {
    background: linear-gradient(
        hsl(0, 100%, 95%),
        hsl(120, 100%, 95%),
        hsl(240, 100%, 95%)
    );
}

.login-form {
    width: 320px;
    padding: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 7px;
}
.login-form .form-title {
    margin-bottom: 30px;
    font-size: 31px;
    border-bottom: 1px solid #dfdfdf;
    padding: 10px 0px;
}
.login-form .form-field {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}
.login-form .form-field label {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: end;
    position: relative;
    border-bottom: 1px solid #a3a3a3;
}
.login-form .form-field label::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: black;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.login-form .form-field label svg {
    width: 22px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0px, -50%);
    fill: gray;
    transition: fill 0.3s ease;
    z-index: 1;
}
.login-form .form-field label:focus-within svg {
    fill: black;
}
.login-form .form-field label:focus-within::after {
    transform: scaleX(1);
}
.login-form .form-field input {
    width: 100%;
    padding: 12px;
    border: 0;
    padding-left: 30px;
    padding-bottom: 5px;
    font-size: 14px;
    background: transparent;
    position: relative;
}
.login-form .form-field .form-error {
    font-size: 13px;
    color: #e73c3c;
    margin: 0px 5px;
}
.login-form .remember {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.login-form .login-btn {
    width: 100%;
    padding: 15px;
    border: 0;
    background: #3182f5;
    color: white;
    cursor: pointer;
}
.login-form .login-btn:hover {
    background-color: #0054cb;
}
.login-form .form-errors .error {
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 10px 0px;
    background: #fff3f3;
    padding: 7px;
    gap: 25px;
    color: #d10000;
    border-radius: 3px;
    box-shadow: 0px 0px 10px -7px black;
}
.login-form .form-errors .error svg {
    width: 30px;
}
