body{
    background-color: #fefefe;
    font-family: sans-serif;
}
 /* Style for the modal */
 .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: #fefefe;
    width: 800px;
    height: 550px;
    display: flex; 
    margin: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 25px;
}

.left-half{
    background: linear-gradient(315deg, #ef7a8b 0%, #674f87 50%);
    width: 30%;
    border-radius: 25px 0 0 25px;
    position: relative;
}
.left-half img{
    position: absolute;
    top: 30%;
    left: 15%;
    width: 160px;
}
.left-half h1{
    position: absolute;
    top:45%;
    left: 20%;
    color: #fff;
}

/* Left half of the modal */
.right-half {
    width: 70%;
    height: 100%;
    background-color: #f3efef ;
    border-radius: 0 25px 25px 0;
    position: relative;
}

.right-half .content{
    width: 70%;
    margin: auto;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.right-half .content h2{
    color: #674f87;
    margin-top: 50px;
}

.username input[type=text]{
    line-height: 40px;
    border-radius: 10px;
    font-size: 14px;
    border: hidden;
    padding-left: 10px;
}
.password-input-container input[type=password]{
    line-height: 40px;
    border-radius: 10px;
    font-size: 14px;
    border: hidden;
    padding-left: 10px;
}
.realm input[type=text]{
    line-height: 40px;
    border-radius: 10px;
    font-size: 14px;
    padding-left: 10px;
    border: hidden;
}
input[type="text" i] {
    line-height: 40px !important;
    align-items: center;
    border-radius: 10px;
    font-size: 14px;
    border: hidden; 
    padding-left: 10px;
}

.right-half .loginbtn{
    background: linear-gradient(315deg, #ef7a8b 0%, #674f87 50%);
    padding: 12px 50px;
    border-radius: 15px;
    color: #fff; margin-top: 15px;
}

.right-half .loginbtn:hover{
    background: linear-gradient(315deg, #674f87, #ef7a8b);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* For screens smaller than 768px (e.g., tablets and phones) */
@media screen and (max-width: 768px) {
    .modal {
        width: 90%; /* Adjust the width of the modal */
        height: auto; /* Allow height to adjust based on content */
        flex-direction: column; /* Stack the modal content vertically */
    }
    .left-half {
        width: 100%; /* Occupy full width for smaller screens */
        border-radius: 25px 25px 0 0; /* Adjust border-radius for rounded corners */
    }
    .left-half img {
        top: 20%; /* Adjust the position of the logo */
        left: 40%; /* Adjust the position of the logo */
    }
    .left-half h1 {
        top: 35%; /* Adjust the position of the title */
        left: 30%; /* Adjust the position of the title */
    }
    .right-half {
        width: 100%; /* Occupy full width for smaller screens */
        border-radius: 0 0 25px 25px; /* Adjust border-radius for rounded corners */
    }
    .right-half .content {
        width: 90%; /* Adjust the width of the content */
    }
}

/* For screens smaller than 576px (e.g., small phones) */
@media screen and (max-width: 576px) {
    .right-half .content {
        width: 100%; /* Occupy full width for smaller screens */
    }
    .username input[type=text],
    .password-input-container input[type=password],
    .realm input[type=text] {
        width: 90%; /* Adjust input width */
    }
    .right-half .loginbtn {
        width: 90%; /* Adjust button width */
    }
}
