* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body,
html {
    height: 100%;
    overflow: hidden;
    background-color: #fff;
}

.reg-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.reg-side-visual {
    flex: 1.2;
    background-image: url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?w=1200');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
    color: white;
}

.reg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.9), rgba(0, 74, 143, 0.8));
}

.reg-visual-content {
    position: relative;
    z-index: 2;
}

.reg-logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.reg-logo span {
    color: #FFEB00;
}

.reg-visual-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.reg-visual-content p {
    font-size: 15px;
    opacity: 0.9;
}

.reg-side-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.reg-form-box {
    width: 100%;
    max-width: 380px;
}

.reg-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.reg-header p {
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
}

.reg-input-group {
    margin-bottom: 15px;
}

.reg-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.reg-input-group input,
.reg-input-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #eee;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.reg-input-group textarea {
    resize: none;
}

.reg-input-group input:focus,
.reg-input-group textarea:focus {
    border-color: #00AEEF;
}

.reg-btn-submit {
    width: 100%;
    padding: 12px;
    background: #00AEEF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.reg-btn-submit:hover {
    background: #004a8f;
}

.reg-footer-text {
    margin-top: 15px;
    font-size: 11px;
    color: #bbb;
    text-align: center;
}

/* Styling Modal Pop-up */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    /* Sembunyi secara default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.4s ease-out;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: #00AEEF;
    color: white;
    font-size: 35px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-content.error-mode {
    border-top: 5px solid #ff4d4d;
    animation: shake 0.3s ease-in-out;
}

/* Tambahkan ini untuk efek goyang saat error muncul (opsional) */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    body,
    html {
        overflow: auto;
        height: auto;
    }

    .reg-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        width: 100%;
    }

    .reg-side-visual {
        min-height: 250px;
        padding: 40px 20px;
        text-align: center;
        flex: none;
    }

    .reg-side-form {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
    }

    .reg-form {
        width: 100%;
        margin-bottom: 20px;
    }

    .reg-form-box {
        max-width: 100%;
    }
}