/* Styling Main Content for Form and Image */
.main-content {
    width: 50%; /* Adjust container width */
    margin: 5em auto;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Add shadow for better visual */
    border-radius: 20px;
    overflow: hidden; /* Prevent content overflow */
}

/* Styling for the Company Info Section (Left) */
.company__info {
    background-color: darkmagenta; /* Background color */
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 40px 20px;
    flex: 1; /* Allow company info section to take full height */
}

.company__logo img {
    width: 100%; /* Full width for the image */
    max-width: 550px; /* Limit the maximum width */
    border-radius: 10px; /* Slightly rounded corners */
    margin-bottom: 20px;
}

.company_title {
    font-size: 24px;
}

/* Styling for the Login Form Section (Right) */
.login_form {
    background-color: #fff;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 40px;
    width: 70%;
    flex: 1; /* Allow form section to take full height */
}

.login_form h2 {
    color: darkmagenta;
    margin-bottom: 30px;
    margin-top: -5px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.form__input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form__input:focus {
    border-color: #008080;
    box-shadow: 0 0 5px rgba(0, 128, 128, 0.5);
}

.btn {
    width: 20%;
    padding: 10px;
    background-color: darkgoldenrod;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    color: black;
}

.row {
    font-weight: 800;
    font-size: 24px;
}

.registerbawah {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.registerbawah a {
    text-decoration: none;
    color: black;
    font-size: 15px;
}

.registerbawah p {
    color: rgb(117, 117, 117);
    margin-left: 250px;
}

/* CSS untuk alert modal */
.alert-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
    font-family: Arial, sans-serif;
}

.alert-modal h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.alert-modal p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.alert-modal .alert-button {
    background-color: darkmagenta;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}


/* Background overlay */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animasi untuk alert */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.error-message {
    margin-top: 20px;
    padding: 10px;
    font-size: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
}

/* Responsive Styling */
@media (max-width: 1024px) {
    /* For medium devices, keep the form but adjust layout */
    .main-content {
        width: 80%; /* Take up more space for medium screens */
    }

    .company__info {
        padding: 30px; /* Reduce padding slightly */
    }

    .login_form {
        padding: 30px; /* Reduce padding slightly */
    }

    .company_title {
        font-size: 22px; /* Smaller title for medium screens */
    }
}

@media (max-width: 768px) {
    /* For smaller screens, make it stack vertically */
    .main-content {
        flex-direction: column;
        width: 90%; /* Allow content to take full width on small screens */
    }

    .company__info {
        border-radius: 20px 20px 0 0; /* Round the top corners */
        padding: 20px; /* Less padding on small screens */
        text-align: center;
    }

    .company__logo img {
        max-width: 100%; /* Make image take full width */
    }

    .login_form {
        border-radius: 0 0 20px 20px;
        padding: 20px; /* Less padding on small screens */
    }

    .login_form h2 {
        font-size: 20px; /* Smaller title */
    }

    .form__input, .btn {
        width: 100%; /* Make form input and button full-width */
    }

    .row {
        font-size: 18px; /* Smaller text size */
    }
}

@media (max-width: 480px) {
    /* For very small devices like phones, optimize further */
    .main-content {
        width: 95%; /* Maximize width for very small screens */
        margin-top: 2em; /* Top margin for better spacing */
    }

    .company__info {
        padding: 15px; /* Reduce padding for better space */
    }

    .company_title {
        font-size: 18px; /* Smaller title for phones */
    }

    .login_form h2 {
        font-size: 18px; /* Smaller header text */
    }

    .form__input {
        padding: 8px; /* Smaller padding */
    }

    .btn {
        width: 80%; /* Button almost full-width */
    }

    .registerbawah p {
        margin-left: 0; /* Remove margin on very small screens */
    }
}
