@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, html {
    font-family: 'Poppins', sans-serif;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
}
.left-section {
    width: 50%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../import/login_bg.svg');
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease-in-out;
}
.left-section .logo img {
    width: 80%;
    max-width: 400px;
    height: auto;
}
.left-section h1 {
    font-size: 32px;
    font-weight: bold;
}
.left-section h2 {
    color: #ec008c;
    font-size: 20px;
}
.right-section {
    background-color: #FFCFCF;
    width: 50%;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; 
    scrollbar-width: thin; 
    scrollbar-color: #FFCFCF #FFCFCF;
    transition: all 0.3s ease-in-out;
}
.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 {
    margin-top: 20px;
    color: #000;
    font-size: 30px;
}
.right-section form {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0;
}
.row {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}
.col {
    flex: 1;
}
.col input {
    width: 100%;
}
label {
    font-weight: 600;
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #000;
}
input[type="text"],
input[type="email"],
input[type="username"],
input[type="tel"],
input[type="date"],
input[type="password"] {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #FFFAFA;
    font-size: 16px;
    width: 100%;
    background: white;
}
input::placeholder {
    color: #888;
    font-size: 14px;
}
input:focus {
    outline: none;
    border: 2px solid #ec008c;
    box-shadow: 0 0 5px rgba(236, 0, 140, 0.5);
}
.gender {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 15px;
}
input[type="radio"] {
    accent-color: #ec008c;
    margin-right: 5px;
}
.birthday {
    margin-bottom: 15px;
}
.birthday input {
    width: 100%;
    padding: 10px;
}
.password-row {
    margin-bottom: 5px;
}
.terms-checkbox {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
    color: #000;
}
.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}
.terms-checkbox a {
    color: #000;
    text-decoration: underline;
}
.terms-checkbox a:hover {
    color: #fff;
}
button {
    background-color: #FF748B;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
button:hover,
button:focus {
    background-color: #F72C5B;
    box-shadow: 0 0 10px rgba(216, 27, 96, 0.5);
}
#error-messages {
    display: block;
    color: red;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}
.error {
    color: red;
    font-size: 0.9em;
    display: none;
}
.success {
    color: green;
    font-size: 0.9em;
    display: none;
}
p {
    font-size: 16px;
    margin-top: 10px;
}
a {
    font-weight: bold; 
    text-decoration: none;
    color: #000;
}
a:hover {
    font-weight: bold; 
    text-decoration: underline;
    color: #FF748B;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}
.modal-content {
    background-color: white;
    width: 50%;
    max-width: 600px;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 80vh; 
    overflow-y: auto; 
}
.modal-body {
    max-height: 65vh; 
    overflow-y: auto; 
    padding-right: 10px;
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: black;
}
.close:hover {
    color: red;
}
.modal-content h4 {
    text-align: center;
    margin-bottom: 10px;
}
.modal-content h5 {
    margin-top: 15px;
    font-size: 18px;
    color: #d1005d;
}
.modal-content ul {
    margin-left: 20px;
}
.modal-content p {
    line-height: 1.5;
}
#customAlert {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}
.alert-box {
    background-color: white;
    width: 350px;
    max-width: 90%;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}
.alert-box h3 {
    font-size: 18px;
    font-weight: bold;
    color: #d1005d;
    margin-bottom: 10px;
}
.alert-box p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}
.alert-box button {
    background-color: #FF748B;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
.alert-box button:hover {
    background-color: #F72C5B;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .left-section h1 {
        font-size: clamp(24px, 2.5vw, 28px);
    }
    .left-section h2 {
        font-size: clamp(16px, 2vw, 18px);
    }
}

@media (max-width: 992px) {
    .right-section form {
        width: 90%;
    }
    .modal-content {
        width: 70%;
    }
}

@media (max-width: 800px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .left-section {
        display: none;
    }
    .right-section {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    .right-section h2 {
        font-size: clamp(24px, 5vw, 28px);
        margin-top: 1rem;
    }
    .row {
        flex-direction: column;
        gap: 0;
    }
    input[type="text"],
    input[type="email"],
    input[type="username"],
    input[type="tel"],
    input[type="date"],
    input[type="password"] {
        padding: 0.75rem;
        font-size: 14px;
    }
    button {
        font-size: 16px;
        padding: 0.75rem;
    }
    .modal-content {
        width: 90%;
        margin: 2rem auto;
        padding: 1rem;
    }
    .modal-body {
        max-height: 60vh;
    }
}

@media (max-width: 576px) {
    body, html {
        overflow-y: auto;
    }
    .right-section {
        padding: 1.5rem 0.5rem;
    }
    .right-section form {
        width: 95%;
    }
    .gender {
        flex-direction: column;
        align-items: flex-start;
    }
    .terms-checkbox {
        font-size: 12px;
    }
    .alert-box {
        width: 95%;
        padding: 1rem;
    }
    .alert-box h3 {
        font-size: 16px;
    }
    .alert-box p {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    input[type="text"],
    input[type="email"],
    input[type="username"],
    input[type="tel"],
    input[type="date"],
    input[type="password"] {
        padding: 0.5rem;
        font-size: 13px;
    }
    button {
        font-size: 15px;
        padding: 0.5rem;
    }
    .terms-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}
