@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #FFFAFA;
    margin: 0;
}
.container {
    display: flex;
    width: 100vw; 
    height: 100vh; 
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}
.left-section {
    width: 70%;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('../import/login_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.left-section .logo img {
    width: 500px;
    height: auto;
}
.left-section h1 {
    font-size: 28px;
    margin-top: 20px;
    font-weight: bold;
}
.left-section h2 {
    color: #ec008c;
    font-size: 20px;
    margin-top: 10px;
}
.right-section {
    background-color: #FFCFCF;
    width: 60%;
    padding: 30px;
    overflow-y: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    box-sizing: border-box;
}
.right-section::-webkit-scrollbar {
    width: 10px; 
}
.right-section::-webkit-scrollbar-track {
    background: #FFCFCF; 
    border-radius: 5px;
}
.right-section::-webkit-scrollbar-thumb {
    background-color: #FFCFCF; 
    border-radius: 5px;
    border: 2px solid #FFCFCF; 
}
.right-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-top: 30px;
}
.right-section img {
    width: 250px;
    height: auto;
    margin: 10px 0;
}
.right-section p {
    color: #000;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
form input[type="email"] {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #000;
    border-radius: 5px;
    font-size: 14px;
    width: 80%;
    font-family: 'Poppins', sans-serif;
}
input::placeholder {
    color: #000;
    font-size: 16px;
    transition: all 0.3s ease; 
}
input:focus {
    outline: none;
    border: 2px solid #ec008c; 
    box-shadow: 0 0 5px rgba(236, 0, 140, 0.5); 
}
form button {
    background-color: #FF748B;
    color: white;
    border: none;
    padding: 10px;
    width: 50%;
    height: 40px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
form button:hover {
    background-color: #F72C5B;
}
.right-section p.login {
    color: #000;
    font-size: 16px;
    text-align: center;
    margin-top: 50px;
}
.right-section p.login a {
    color: #ec008c;
    font-weight: bold;
    margin-left: 5px;
    text-decoration: none;
}
.right-section p.login a:hover {
    color: #000;
    text-decoration: underline;
}
.modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 400px;
    padding: 20px;
    z-index: 1000;
    text-align: center;
    font-family: Arial, sans-serif;
}
.modal-header {
    font-weight: bold;
    margin-bottom: 10px;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}
.modal.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Show right-section and hide left-section when screen width is 800px or below */
@media (max-width: 800px) {
    .container {
        flex-direction: column;
        height: auto;
        border-radius: 0;
    }

    .left-section {
        display: none; /* Hide left-section */
    }

    .right-section {
        display: flex; /* Make right-section visible */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
        padding: 40px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .right-section img {
        max-width: 300px;
    }

    .right-section h1 {
        font-size: 24px;
        margin-top: 15px;
    }

    .right-section h2 {
        font-size: 16px;
    }

    form {
        width: 90%;
    }

    button {
        font-size: 18px;
        height: 45px;
    }

    p {
        margin-top: 60px;
    }
}