body{
    margin: 0;
    padding: 0;
    background-color: rgb(253, 245, 234);
    height: 100vh;
    font-family: "Open Sans", serif;
}
body.dark-mode{
    background-color: rgb(32, 32, 32);
}
section{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 180px;
}
.signup-container{
    display: flex;
    justify-content: center;
    height: 400px;
    width: 700px;
    text-align: center;
    border-radius: 15px;
}
.signup-container:hover{
    box-shadow: 0px 0px 10px 3px #cbcbcb;
}
.signup-img img{
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    height:400px;
    width:350px;
}
.form-container{
    background-color: #faddcf;
    display: flex;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    flex-direction: column;
    align-items: center;
    height: 400px;
    text-align: center;
    width: 350px;
}
.form-container h1{
    margin-top: 30px;
    padding: 20px 10px;
    font-size: 32px;
    color: #232323;
    text-align: center;
}
.input{
    border-radius: 5px;
    width: 85%;
    margin: 10px 10px;
    padding: 12px;
    background-color: #fffffe;
    border: none;
    align-items: center;
}
.input:hover{
    border: solid 1px #f45d48;
}
.input::placeholder{
    color: #232323;
}
.checkbox-container {
    width: 85%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 10px 22px;
}
.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-container label {
    font-size: 14px;
    color: #232323;
}
.signup-btn{
    width: 85%;
    margin: 20px 15px;
    padding: 10px;
    padding: 7px 20px; 
    background-color: rgb(217, 87, 87); 
    color: #232323; 
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
}
.signup-btn:hover{
    cursor: pointer;
    box-shadow: 0px 0px 10px 5px #db8175;;
}
.already-account {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: #232323; 
}
.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dialog button {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
.already-account p {
    margin: 0; 
    margin-right: 5px; 
    font-weight: 400;
}

.already-account a {
    color: rgb(207, 92, 92);
    text-decoration: none; 
    font-weight: 600; 
}

.already-account a:hover {
    text-decoration: underline; 
    color: rgb(207, 92, 92);
}

/* Media Queries for Tablet */
@media screen and (min-width: 501px) and (max-width: 768px){
    section{
        margin-top: 30px;
    }
    .login-container{
        flex-direction: column;
        height: 600px;
        width: 450px;
    }
    .signup-container:hover{
        box-shadow: none;
    }
    .login-img img{
        display: none;
    }
    .input{
        width: 86%;
        margin: 7px 20px;
    }
    .login-btn{
        width: 91%;
        font-size: 15px;
    }
    .already-account {
        margin: 15px 0px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1000px){
    .login-container{
        height: 500px;
        width: 700px;
    }
    .login-img img{
        height: 500px;
        width: 350px;
    }
    .form-container h1{
        font-size: 30px;
    }
    .input{
        width: 82%;
        margin: 10px 20px;
    }
    .login-btn{
        width: 88%;
        font-size: 15px;
    }
    .already-account {
        margin: 20px 0px;
    }
}

/* Media Queries for Mobile Device */
@media screen and (max-width: 500px){
    section{
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .signup-container{
        margin-top: 80px;
        height: 350px;
        width: 250px;
    }
    .signup-container:hover{
        box-shadow: none;
    }
    .signup-img img{
        display: none;
    }
    .form-container h1{
        font-size: 26px;
    }
    .form-container{
        height: 350px;
        border-radius: 15px;
    }
    .input{
        width: 80%;
        margin: 7px 20px;
    }
    .login-btn{
        width: 87%;
        font-size: 15px;
    }
    .already-account {
        margin: 15px 0px; 
        font-size: 14px;
        color: #232323; 
    }
    .form-container h1{
        margin-top: 10px;
        font-size: 28px;
    }
    .input{
        width: 80%;
        margin: 10px;
    }
    .signup-btn{
        width: 90%;
        margin: 10px ;
    }
}