body,
html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    overflow: hidden;
}

.login-page {
    height: 100vh;
}

.left-section {
    position: relative;
    background-image: url('../assets/images/bg/komodity.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #f4f4f4;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    overflow-y: auto;
    z-index: 1;
}
.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5); /* Ubah opacity sesuai keinginan */
    z-index: 0;
}

/* Biar konten tetap di atas overlay */
.left-section > * {
    position: relative;
    z-index: 1;
}


.left-section .logo {
    margin-bottom: 20px;
    text-align: center;
}

.left-section .logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.left-section .logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.right-section {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    height: 100%;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 12px;
    background-color: #ffffff;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.login-container .tagline {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}


.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    box-shadow: none;
}

.form-control::placeholder {
    color: #aaa;
}

.form-control:focus {
    border-color: #50a3a2;
    box-shadow: 0 0 0 0.2rem rgba(80, 163, 162, 0.25);
}

.input-group-text {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    color: #555;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.password-input-group .form-control {
    border-right: none;
    border-radius: 0;
}

.password-toggle-icon {
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #888;
}

/* Removed .form-check related styles as per image, checkbox is not present */

.forgot-password {
    color: #5046e5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    background-color: #50a3a2;
    border-color: #50a3a2;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #3b8c8a;
    border-color: #3b8c8a;
}

.or-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%; /* Adjust width as needed */
    height: 1px;
    background-color: #ddd;
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

.or-text {
    background-color: #ffffff;
    padding: 0 10px;
    color: #888;
    font-size: 0.9rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-weight: 600;
    flex: 1; /* Make buttons take equal width */
}

.social-login-btn:hover {
    background-color: #f5f5f5;
}

.social-login-btn img {
    width: 16px;
    height: 16px;
}

.sign-up-link {
    color: #5046e5; /* Blue color for sign up link */
    text-decoration: none;
    font-weight: 600;
}

.sign-up-link:hover {
    text-decoration: underline;
}
.login-container {
    animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .login-page .row {
        flex-direction: column;
        height: 100%;
    }

    .left-section {
        height: 25vh;
        order: 2;
    }

    .left-section .logo {
        display: none;
    }

    .right-section {
        height: 75vh;
        order: 1;
    }

    .login-container {
        max-width: 400px;
        padding: 30px;
    }

    .login-container h2 {
        font-size: 2rem;
    }

    .login-container .tagline {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .left-section {
        height: 20vh;
        padding: 15px;
    }

    .right-section {
        height: 80vh;
        padding: 15px;
    }

    .login-container {
        padding: 30px;
        max-width: 90%;
    }

    .login-container h2 {
        font-size: 1.8rem;
    }

    .login-container .tagline {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .form-control,
    .input-group-text,
    .password-toggle-icon,
    .btn-login {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    /* Removed .form-check related media queries */

    .forgot-password {
        margin-top: 0; /* Adjusted for better alignment */
    }
}

@media (max-width: 575.98px) {
    .login-container {
        padding: 20px;
    }
    .login-container h2 {
        font-size: 1.6rem;
    }
    .login-container .tagline {
        font-size: 0.8rem;
    }
    /* Removed .form-check related media queries */
}
