﻿/* ==== STYLE UTAMA (DESKTOP) ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.containers {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.kiri {
    flex: 8;
    background-color: #333;
    background-image: url('https://www.bpmb.com.my/wp-content/uploads/bagus-scholarship.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.kanan {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    padding: 40px;
}

.form-login {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

    .form-login input {
        width: 100%;
        padding: 10px;
        margin-bottom: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

    .form-login button {
        width: 100%;
        padding: 10px;
        background-color: #333;
        border: none;
        color: white;
        border-radius: 6px;
        cursor: pointer;
    }

        .form-login button:hover {
            background-color: #0056b3;
        }

.login-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 15px auto;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: 1px;
}

/* ==== POPUP (sama seperti punyamu) ==== */
.popup-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .popup-message.hidden {
        display: none;
    }

.popup-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 300px;
    animation: pop 0.25s ease;
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content button {
    padding: 6px 14px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

    .popup-content button:hover {
        background: #0056b3;
    }

/* ==== STYLE RESPONSIVE UNTUK MOBILE ==== */
@media screen and (max-width: 768px) {
    .containers {
        flex-direction: column;
        height: auto;
        overflow-y: auto; /* biar bisa di-scroll */
    }

    .kiri {
        flex: none;
        height: 200px; /* lebih kecil di HP */
        background-size: cover;
    }

    .kanan {
        flex: none;
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .form-login {
        max-width: 100%;
        padding: 0 15px;
    }

    .login-logo {
        width: 120px;
        margin-bottom: 10px;
    }

    .login-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .form-login input,
    .form-login button {
        font-size: 14px;
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .login-title {
        font-size: 18px;
    }
    .kiri {
        display: none; /* ⛔ sembunyikan gambar kiri */
    }
    .kanan {
        flex: none;
        width: 100%;
        height: 100vh; /* biar full satu layar */
        padding: 30px 20px;
        justify-content: center;
        background-color: #ffffff; /* biar bersih di mobile */
    }
    .popup-content {
        width: 90%;
        padding: 15px;
    }

        .popup-content p {
            font-size: 14px;
        }
}
