body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #4e3ca3, #2a2345);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container utama */
.register-container {
    width: 950px;
    max-height: 90vh;
    background: #1f1b2e;
    border-radius: 10px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Panel kiri */
.left-panel {
    width: 45%;
    position: relative;
    background: url("http://localhost/marketplace-guru/assets/images/gurubg.png") center/cover no-repeat;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

/* Overlay elegan di panel kiri */
.left-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(42, 35, 69, 0.2) 0%,
        rgba(42, 35, 69, 0.5) 40%,
        rgba(42, 35, 69, 0.85) 100%
    );
    z-index: 0;
}

/* Pastikan konten di atas overlay */
.left-content {
    position: relative;
    z-index: 1;
}

/* Teks kiri lebih halus */
.left-content h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.left-content p {
    font-size: 15px;
    opacity: 0.9;
}

/* Panel kanan */
.right-panel {
    width: 55%;
    padding: 40px;
    color: white;
    overflow-y: auto;
}

.right-panel h1 {
    margin-top: 0;
}

/* Form layout */
.form-row {
    display: flex;
    gap: 20px; /* jarak antar kolom */
    margin-bottom: 18px; /* jarak antar baris */
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2640;
    color: white;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #6c5ce7;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #6c5ce7;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #5a4bd1;
}

.link {
    color: #a29bfe;
    text-decoration: none;
}

/* Perbaikan jarak horizontal antar field tanpa mengubah struktur */
.form-group {
    padding: 0 5px;
}

/* Supaya baris tetap sejajar dan tidak melebar */
.form-row {
    margin-left: -5px;
    margin-right: -5px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 900px) {

    body {
        align-items: flex-start;
        padding: 20px 10px;
        height: auto;
    }

    .register-container {
        flex-direction: column;
        width: 100%;
        max-height: none;
        border-radius: 12px;
    }

    /* Panel kiri jadi header */
    .left-panel {
        width: 100%;
        min-height: 220px;
        align-items: flex-end;
        padding: 20px;
    }

    .left-content h2 {
        font-size: 22px;
    }

    .left-content p {
        font-size: 14px;
    }

    /* Panel kanan */
    .right-panel {
        width: 100%;
        padding: 25px 20px;
        overflow: visible;
    }

    /* Form jadi 1 kolom di HP */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        padding: 0;
        margin-bottom: 15px;
    }
}

/* =========================
   MOBILE FIX (PERBAIKAN UTAMA)
========================= */
@media (max-width: 900px) {

    body {
        display: block;          /* jangan flex di mobile */
        height: auto;
        padding: 20px 10px;
    }

    .register-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        flex-direction: column;
        max-height: none;
    }

    /* Panel kiri full dan proporsional */
    .left-panel {
        width: 100%;
        min-height: 260px;
        background-position: center;
        background-size: cover;
    }

    /* Panel kanan full */
    .right-panel {
        width: 100%;
        overflow: visible;
    }
}

select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2640;
    color: white;
}

select:focus {
    outline: none;
    border-color: #6c5ce7;
}