#login {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
#login a {
    position: absolute;
    top: 3.75rem;
    left: 6.25rem;
}
#login::before {
    content: '';
    position: absolute;
    height: 18.75rem;
    width: 18.75rem;
    background: linear-gradient(45deg, var(--bc2), var(--bc1));
    filter: blur(130px);
    animation: move 12s linear infinite;
}
@keyframes move  {
    0%   { transform: translate(0px, -120px); }
    20%  { transform: translate(100px, 100px); }
    40%  { transform: translate(-120px, -40px); }
    60%  { transform: translate(120px, -40px); }
    80%  { transform: translate(-100px, 100px); }
    100% { transform: translate(0px, -120px); }
}
.login-box {
    width: 23rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(var(--bgc1rgb), 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 2s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-box h2 {
    text-align: center;
    margin-bottom: 1.9rem;
    letter-spacing: 1px;
}
.input-box {
    position: relative;
    margin-bottom: 2.5rem;
}
.input-box input {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.75rem;
    background: transparent;
    outline: none;
    border-bottom: 3px solid;
    border-image-source: radial-gradient(circle, rgba(var(--bc1rgb), 1) 0%, rgba(var(--bgc1rgb), 0) 80%);
    border-image-slice: 1;
    color: var(--txtc);
    transition: 0.3s;
}
.input-box input:focus,
.input-box input:valid {
    border-bottom: 3px solid;
    border-image: radial-gradient(circle, rgba(var(--bc2rgb), 1) 0%, rgba(var(--bgc1rgb), 0) 100%);
    border-image-slice: 1;
}
.input-box label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: 0.3s;
    color: rgba(var(--txtcrgb), 0.5);
}
.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
    left: 50%;
    top: -3px;
    font-size: var(--label);
    color: rgba(var(--txtcrgb), 0.8);
}
.input-box .req-err {
    display: none;
    position: absolute;
    padding: 2px 6px 3px;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FF0000;
    border-radius: 10px;
    text-align: center;
    font-size: var(--label);
    font-weight: 600;
    white-space: nowrap;
}
.input-box p.req-err:first-of-type {
    animation: shake 0.4s ease-in-out;
}
.input-box p.req-err:nth-of-type(2) {
    animation: shake 0.4s ease-in-out 1.7s;
}
@keyframes shake {
    0% { transform: translateX(-50%); }
    15% { transform: translateX(-54%); }
    30% { transform: translateX(-46%); }
    45% { transform: translateX(-53%); }
    60% { transform: translateX(-47%); }
    75% { transform: translateX(-51%); }
    90% { transform: translateX(-49%); }
    100% { transform: translateX(-50%); }
}
.input-box input:user-invalid ~ p.req-err:first-of-type,
.input-box p.req-err:nth-of-type(2) {
    display: block;
}
.btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--bc1), var(--bc1), var(--bc2));
    color: var(--bgc1);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--bc1);
}
@media screen and (max-width: 1024px) {
    #login a {
        left: 4.25rem;
    }
}
@media screen and (max-width: 430px) {
    #login a {
        top: 2.75rem;
        left: 3.25rem;
    }
}
@media screen and (max-height: 430px) {
    #login a {
        top: 2.75rem;
    }
}