@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
}

.auth-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================================================
   SISI KIRI (DARK NAVY)
   ========================================================================== */
.auth-left {
    background-color: #26293d;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-logo-container {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.brand-logo-container img {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
}

.brand-logo-container i {
    font-size: 35px;
    color: #26293d;
}

.auth-left h3 {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.auth-left p {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.7;
    max-width: 320px;
    text-align: center;
    margin-bottom: 2rem;
}

.btn-learn-more {
    background-color: rgba(206, 95, 109, 0.2);
    color: #ce5f6d;
    border: none;
    border-radius: 50px;
    padding: 10px 35px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-learn-more:hover {
    background-color: #ce5f6d;
    color: #fff;
}

/* ==========================================================================
   SISI KANAN (WHITE FORM)
   ========================================================================== */
.auth-right {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    flex: 1;
}

.auth-form-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

/* Titik-titik (Dots) */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 35px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #e5e7eb;
}

.dot.active {
    background-color: #26293d;
}

/* Input Form Custom */
.custom-input {
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    background-color: #fff;
    transition: all 0.3s;
}

.custom-input:focus {
    border-color: #ce5f6d;
    box-shadow: none;
    outline: none;
}

.custom-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

/* Checkbox */
.form-check-input {
    border-color: #d1d5db;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: #26293d;
    border-color: #26293d;
}

/* Tombol Utama */
.btn-auth {
    background-color: #ce5f6d;
    color: #fff;
    border-radius: 50px;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(206, 95, 109, 0.3);
}

.btn-auth:hover {
    background-color: #b9515e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(206, 95, 109, 0.4);
}

/* Lingkaran Pemisah (Overlap Circle) */
.overlap-circle {
    position: absolute;
    width: 64px;
    height: 64px;
    background-color: #ce5f6d;
    border: 8px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 10;
}

/* Tombol Close (X) */
.btn-close-full {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 99;
    transition: 0.3s;
}

/* ==========================================================================
   RESPONSIVE LAYOUT RULES
   ========================================================================== */

/* MOBILE MODE (< 992px) */
@media (max-width: 991.98px) {
    .auth-left {
        /* Bawah melengkung */
        border-radius: 0 0 50% 50% / 0 0 35px 35px;
        padding-top: 60px;
        padding-bottom: 70px;
    }
    .overlap-circle {
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 50%);
    }
    .overlap-circle i::before {
        content: "\F282"; /* Icon Chevron Down */
    }
    .btn-close-full {
        background-color: rgba(255,255,255,0.1);
        color: #fff;
    }
    .btn-close-full:hover { background-color: rgba(255,255,255,0.2); color: #fff;}
}

/* DESKTOP MODE (>= 992px) */
@media (min-width: 992px) {
    .auth-wrapper {
        flex-direction: row;
    }
    .auth-left {
        width: 40%;
        /* Potongan miring presisi */
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
        padding-right: 12%; 
    }
    .auth-right {
        width: 60%;
        padding-left: 5%;
    }
    .overlap-circle {
        top: 50%;
        /* 40vw (lebar kiri) dikali 90% (titik tengah kemiringan) = 36vw */
        left: 36vw; 
        transform: translate(-50%, -50%);
    }
    .overlap-circle i::before {
        content: "\F284"; /* Icon Chevron Left */
    }
    .btn-close-full {
        background-color: rgba(0,0,0,0.05);
        color: #1f2937;
    }
    .btn-close-full:hover { background-color: #ce5f6d; color: #fff;}
}

/* ==========================================================================
   STYLING SELECT OPTION (ROLE) & HOVER OVERLAP
   ========================================================================== */
select.custom-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Membuat panah custom yang elegan */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 16px 12px;
    padding-right: 3rem !important;
    color: #9ca3af; /* Warna abu-abu saat belum dipilih */
}

/* Mengubah warna teks menjadi gelap setelah user memilih opsi */
select.custom-input:valid {
    color: #1f2937;
}
select.custom-input option {
    color: #1f2937;
}

/* Efek tombol pada lingkaran penengah */
a.overlap-circle {
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(206, 95, 109, 0.3);
}

@media (min-width: 992px) {
    a.overlap-circle:hover {
        transform: translate(-50%, -50%) scale(1.15);
        background-color: #b9515e;
    }
}
@media (max-width: 991.98px) {
    a.overlap-circle:hover {
        transform: translate(-50%, 50%) scale(1.15);
        background-color: #b9515e;
    }
}