@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);
}
.right-section {
    width: 50%;
    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;
    background-attachment: fixed;
    margin: 0;
}
.right-section .logo img {
    width: 500px;
    height: auto;
}
.right-section h1 {
    font-size: 28px;
    margin-top: 20px;
    font-weight: bold;
}
.right-section h2 {
    color: #ec008c;
    font-size: 20px;
    margin-top: 10px;
}
.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FFCFCF;
    width: 50%;
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
}
.left-section::-webkit-scrollbar {
    width: 10px; 
}
.left-section::-webkit-scrollbar-track {
    background: #FFCFCF; 
    border-radius: 5px;
}
.left-section::-webkit-scrollbar-thumb {
    background-color: #FFCFCF; 
    border-radius: 5px;
    border: 2px solid #FFCFCF; 
}
.left-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 80px;
    padding-top: 30px;
}
form {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
}
input[type="text"] {   
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    height: 40px;
    transition: all 0.3s ease;
}
input[type="password"] {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    height: 40px;
    transition: all 0.3s ease;
}
.password-row {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}
input::placeholder {
    color: #000;
    font-size: 14px;
    transition: all 0.3s ease;
}
input:focus {
    outline: none;
    border: 2px solid #ec008c;
    box-shadow: 0 0 5px rgba(236, 0, 140, 0.5);
}
.forgot-password {
    display: block;
    color: #ec008c;
    text-decoration: none;
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}
.forgot-password:hover {
    text-decoration: underline;
    color: #000;
}
button {
    background-color: #FF748B;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bolder;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
button:hover,
button:focus {
    background-color: #F72C5B;
}
p {
    text-align: center;
    margin-top: 120px;
    font-size: 16px;
}
a {
    color: #d81b60;
    text-decoration: none;
    font-weight: bold;
}
a:hover {
    color: #000;
    text-decoration: none;
    text-decoration: underline;
}
#error-messages {
    display: block;
    color: #000; 
    padding: 10px;
    border-radius: 5px; 
    font-size: 16px;
    margin: 0 auto 20px auto;
    width: fit-content;
    text-align: center; 
}

#error-messages.visible {
    display: block; /* Show when class is 'visible' */
}

#error-messages.hidden {
    display: none; /* Hide when class is 'hidden' */
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        border-radius: 0;
    }

    .right-section, .left-section {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .right-section .logo img {
        max-width: 300px;
    }

    .right-section h1 {
        font-size: 24px;
        margin-top: 15px;
    }

    .right-section h2 {
        font-size: 16px;
    }

    .left-section h2 {
        font-size: 22px;
        margin-bottom: 40px;
        padding-top: 15px;
    }

    form {
        width: 90%;
    }

    button {
        font-size: 18px;
        height: 45px;
    }

    p {
        margin-top: 60px;
    }
}

/* Small devices (phones, 480px and down) */
/* Show left-section when the screen width is 800px or below */
@media (max-width: 800px) {
    .container {
        flex-direction: column;
        height: auto;
        border-radius: 0;
    }

    .right-section, 
    .left-section {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .right-section .logo img {
        max-width: 300px;
    }

    .right-section h1 {
        font-size: 24px;
        margin-top: 15px;
    }

    .right-section h2 {
        font-size: 16px;
    }

    .left-section {
        display: flex; /* Make left-section visible */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
        background-color: #FFCFCF;
        padding: 40px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    form {
        width: 90%;
    }

    button {
        font-size: 18px;
        height: 45px;
    }

    p {
        margin-top: 60px;
    }
}
@media (max-width: 480px) {
    input[type="text"], 
    input[type="password"] {
        padding: 15px;
        font-size: 12px;
        height: 35px;
    }

    button {
        font-size: 16px;
        height: 40px;
    }

    .forgot-password {
        font-size: 12px;
    }

    .right-section {
        background-attachment: scroll;
    }
}