body{
    margin:0px;
}
.loginWindow{
    text-align: center;
    height: fit-content;
    width: fit-content;
    /* border: solid #666 1px; */
    padding: 40px 20px 10px 20px;
    box-shadow: 0px 0px 10px 3px rgba(0,0,0,0.54);
}
.login, .register{
    margin:0 auto;
    max-width:50vw;
    width:100%;
    height:100vh;
    overflow: hidden;
}
section .container h2{
    font-size: 20px;
}
.login .container, 
.register .container{
    transition: transform 0.5s ease;
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
form .formGroup{
    margin: 20px 0px 0px 0px;
}
form .formGroup:first-child{
    margin: 0px 0px 0px 0px;
}
form .formGroup:last-child{
    margin: 0px 0px 0px 0px;
}
form label{
    position: absolute;
    height: 10px;
    font-size: 12px;
    transform: translate(10px, -6px);
    background-color: white;
}
form input{
    min-width:200px;
    width:260px;
    min-height:34px;
    margin:10px;
}
form .button{
    width:268px;
}
form .loginUsername{
    padding-right: 35px;
    width: 225px;
}
form #username-check{
    position: absolute;
    transform: translate(-35px, 20px);
}
.register .container{
    transform: translateX(-100%);
}
.register.toggled .container, 
.login.toggled .container{
    transform: translateX(0);
}
.login .container{
    transform: translateX(100%);
}
.overlap {
    display:flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 50%;
    right: 0;
    background: rgb(20, 78, 89);
    background: linear-gradient(105deg, rgba(20, 78, 89, 0.8211659663865546) 0%, rgba(24, 62, 73, 1) 18%, rgba(31, 31, 43, 1) 84%, rgba(2, 0, 36, 1) 100%);
    transition: background 0.5s, right 0.5s; /* Add transition properties */
}

.overlap.toggled {
    right: 50%; /* Change the right attribute */
    background: linear-gradient(-75deg, rgba(20, 78, 89, 0.8211659663865546) 0%, rgba(24, 62, 73, 1) 18%, rgba(31, 31, 43, 1) 84%, rgba(2, 0, 36, 1) 100%);
}
/* Default button styles */
.overlap #overlapButton{
    background-color: #ff7a45; /* Orange background color */
    color: #FFFFFF; /* White font color for better contrast */
    width: 16rem;
    text-align: center;
    font-size: 1.5rem;
    padding: 12px 0px; /* Adjust padding as needed */
    border: none; /* Optionally, remove the border for a flat button */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, border-radius 0.3s; /* Add transition for a smooth effect */
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2); /* Slightly stronger box shadow on hover */
    border-radius: 2px; /* Increase border-radius on hover for a more pronounced rounded effect */
}

/* Hover effect */
.overlap #overlapButton:hover,
.toggled #overlapButton{
    background-color: #FF6B6B; /* Darker orange background color on hover */
    color: #FFFFFF; /* White font color on hover for contrast */
}
.toggled  #overlapButton:hover{
    background-color: #ff7a45; /* Orange background color */
    color: #FFFFFF; /* White font color for better contrast */
}

.flex{
    display:flex;
}
.errorMessages{
    padding:10px 0px;
    height:20px;
    font-size:14px;
    color: #dd0000;
}
#filters{
    pointer-events: none;
    position:absolute;
    left:0;
    top:0;
    height:100vh;
    width:100vw;
}
#filters.invert{
    backdrop-filter: invert(.9);
}
@media screen and (max-width: 700px){
    .login, 
    .register{
        max-width:100vw;
    }
}