/* =========================
GLOBAL BODY
========================= */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #4e3ca3, #2a2345);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* =========================
REGISTER CONTAINER
========================= */
.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;
    max-width: 100%;
}

/* =========================
LEFT PANEL
========================= */
.left-panel {
    width: 45%;
    position: relative;
    background: url("/assets/images/auth-bg.jpg") center/cover no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 30px 30px 30px;
}

.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;
}

.left-content {
    position: relative;
    z-index: 2;
    padding-top: 50px;
}

.left-content h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.left-content p {
    font-size: 15px;
    opacity: 0.9;
}

.left-panel .logo-link {
    display: block;
    margin-bottom: 20px;
}

.left-panel .logo {
    max-width: 150px;
    height: auto;
    display: block;
}

.left-panel.white-logo .logo {
    content: url('/assets/images/white-logo.png');
}

/* =========================
TOMBOL BERANDA
========================= */
.left-panel .back-home {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
}

.left-panel .back-home:hover {
    background: rgba(0,0,0,0.55);
}

/* =========================
RIGHT PANEL
========================= */
.right-panel {
    width: 55%;
    padding: 40px;
    color: white;
    overflow-y: auto;
    max-width: 100%;
}

.right-panel h1 {
    margin-top: 0;
}

/* =========================
FORM
========================= */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1 1 100%;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2640;
    color: white;
    box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #6c5ce7;
}

.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;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 900px) {
    body {
        display: block;
        height: auto;
        padding: 20px 10px;
    }

    .register-container {
        width: 100%;
        margin: 0 auto;
        flex-direction: column;
        max-height: none;
    }

    .left-panel {
        width: 100%;
        min-height: 260px;
        padding: 80px 20px 20px 20px;
    }

    .left-content {
        padding-top: 70px;
    }

    .left-content h2 {
        font-size: 22px;
    }

    .left-content p {
        font-size: 14px;
    }

    .right-panel {
        width: 100%;
        padding: 20px;
        overflow: visible;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .form-group {
        padding: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    input, select, textarea {
        width: 100%;
        box-sizing: border-box;
    }
}