/* ========== GLOBAL STYLE ========== */
body {
    font-family: 'Poppins', sans-serif;
    background: #f2f2f2;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ========== CONTAINER ========== */
.register-container {
    width: 850px;
    height: 550px;
    background: #fff;
    border-radius: 25px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ========== LEFT SECTION ========== */
.left-section {
    width: 45%;
    background: #FFF2E1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-left: 70px;
    /* dulu 50px, ditambah agar teks lebih ke kanan */
}

.left-section img {
    width: 200px;
    margin-bottom: 10px;
    margin-left: 20px;
    /* dorong sedikit maskot ke kanan */
}

.left-section h2 {
    font-size: 28px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.left-section p {
    font-size: 15px;
    color: #666;
    margin: 0;
    margin-bottom: 10px;
}

/* ========== RIGHT SECTION ========== */
.right-section {
    width: 55%;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #6a1b9a;
}

.input-group input {
    width: 100%;
    padding: 12px 45px;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 14px;
    outline: none;
    border-radius: 25px;
    background: #f9f9f9;
}

.input-group input:focus {
    border-bottom-color: #6a1b9a;
}

/* Eye toggle */
.toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Button */
.btn-register {
    width: 100%;
    background: #f9a825;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-register:hover {
    background: #f57c00;
}

.login-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #f9a825;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* POPUP ERROR */
.popup-error {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.popup-error.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.popup-content {
    background: #fff;
    border-left: 6px solid #ff4d4f;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 260px;
    max-width: 320px;
    font-family: 'Poppins', sans-serif;
}

.popup-icon {
    font-size: 20px;
}

.popup-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.popup-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
}

.popup-close:hover {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 900px) {
    .register-container {
        width: 95%;
        height: auto;
    }

    .left-section {
        width: 45%;
        padding: 40px 20px 30px 30px;
        justify-content: flex-start;
    }

    .left-section img {
        width: 150px;
        margin-left: -10px;
        /* geser maskot ke kiri */
        margin-top: 10px;
    }

    .left-section h2 {
        font-size: 22px;
        margin-top: 10px;
    }

    .left-section p {
        font-size: 14px;
        margin-top: 5px;
    }

    .right-section {
        width: 55%;
        padding: 30px 30px 30px 20px;
        /* geser form ke kiri */
    }
}


/* Mobile */
@media (max-width: 500px) {

    body {
        height: 100vh;
        margin: 0;
        padding: 0;
        align-items: stretch;
    }

    .register-container {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }

    .left-section {
        width: 42%;
        justify-content: flex-start;
        padding: 180px 15px 20px 20px;
        /* naikkan konten */
    }

    .left-section img {
        width: 170px;
        margin-left: -15px;
        /* maskot lebih ke kiri */
        margin-top: 10px;
    }

    .left-section h2 {
        font-size: 18px;
        line-height: 1.2;
        margin-top: 10px;
    }

    .left-section p {
        font-size: 12px;
        margin-top: 5px;
    }

    .right-section {
        width: 58%;
        height: 100%;
        justify-content: center;
        padding: 25px 20px 25px 12px;
        /* form geser ke kiri */
    }

    .input-group input {
        font-size: 13px;
        padding: 10px 38px;
        /* biar tidak kepotong */
    }

    .btn-register {
        font-size: 14px;
        padding: 10px;
    }
}