:root {
    --babypowder: rgba(253, 255, 252, 1);
    --raisinblack: rgba(33, 26, 29, 1);
    --primary: rgba(0, 74, 173, 1);
    --secondary: rgba(93, 187, 230, 1);
}

.backgroundoverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.logincontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
}

.loginform {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 1rem;
    backdrop-filter: blur(1rem);
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.loginform h2 {
    margin-bottom: 0;
    font-size: 24px;
    color: #ffffff;
}

.form-button, form input, .clearbtn {
    margin-bottom: 0;
}

#message {
    text-align: justify;
}

.loginform input {
    width: calc(100% - 1rem);
    padding: 0.5rem;
    border: none;
    border-radius: 2rem;
    background-color: var(--babypowder);
}

.socialmedia {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.socialmedia img {
    width: 100%;
    max-width: 32px;
    height: auto;
    transition: transform .3s ease;
}

.socialmedia img:hover {
    transform: scale(1.1);
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.password-strength {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

#strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.weak { background: red; }
.medium { background: orange; }
.strong { background: green; }

.password-criteria ul {
    list-style: none;
    padding: 0;
}

.password-criteria li {
    font-size: 14px;
    transition: color 0.3s;
}

.password-criteria li.valid {
    color: #4bbb4b;
    font-weight: bold;
}

.password-criteria li.invalid {
    color: #ff8181;
}