/* ===================================
    Register Page Styles
   =================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-gradient: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: var(--bg-gradient);
    min-height: 100vh;
    display: flex; /* Penting untuk tengah */
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px; /* Jarak aman di HP */
}

/* Container Utama (Kaca) */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: row;
}

/* Panel Kiri (Gambar/Info) */
.left-panel {
    flex: 1;
    background: var(--primary-gradient);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    width: 200px; 
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -50px; 
    left: -50px;
}

/* Panel Kanan (Form) */
.right-panel {
    flex: 1.2;
    padding: 40px;
    background: white;
}

/* Form Input Style */
.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
    background: #f8f9fa;
    width: 100%;
    box-sizing: border-box; /* Agar padding tidak merusak lebar */
    margin-bottom: 0;
}

.form-control:focus {
    background: white;
    box-shadow: none;
    border-color: #4facfe;
    outline: none;
}

/* Tombol Gradient */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
    width: 100%;
    cursor: pointer;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    color: white;
}

/* Kotak Fitur Lokasi */
.location-box {
    background: #f0f7ff;
    border: 1px dashed #4facfe;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
}

.location-active {
    background: #e6fffa;
    border-color: #2ecc71;
    color: #276749;
}

/* Animasi Muncul */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .glass-card { 
        flex-direction: column; 
        margin: 0;
    }
    .left-panel { 
        padding: 30px; 
        min-height: 200px;
    }
    .right-panel { 
        padding: 30px; 
    }
}

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px;
        margin: 0;
    }

    .glass-card {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    .left-panel {
        padding: 20px 15px;
        min-height: 180px;
        border-radius: 15px 15px 0 0;
    }

    .left-panel::before {
        width: 150px;
        height: 150px;
        top: -30px;
        left: -30px;
    }

    .left-panel h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .left-panel p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .right-panel {
        padding: 20px 15px;
        border-radius: 0 0 15px 15px;
    }

    .right-panel h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom */
        border-radius: 8px;
        margin-bottom: 12px;
        border: 1px solid #ddd;
    }

    .form-control:focus {
        border-color: #4facfe;
        box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
        display: block;
        color: #333;
        font-weight: 600;
    }

    .btn-gradient {
        padding: 11px;
        font-size: 0.95rem;
        min-height: 44px; /* Touch target minimum */
        margin-top: 15px;
        margin-bottom: 10px;
        width: 100%;
    }

    .location-box {
        padding: 12px;
        margin-bottom: 15px;
        flex-direction: column;
        gap: 10px;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .location-info {
        gap: 8px;
        font-size: 0.8rem;
    }

    .location-info i {
        font-size: 1.2rem;
    }

    .location-status {
        font-size: 0.75rem;
    }

    /* Small text helpers */
    small {
        font-size: 0.8rem;
        display: block;
        margin-top: 4px;
        color: #666;
    }

    /* Spacing utilities */
    .mb-3 {
        margin-bottom: 1rem !important;
    }

    .mt-3 {
        margin-top: 1rem !important;
    }

    /* Checkboxes and radios more touch-friendly */
    .form-check-input {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .form-check-label {
        margin-left: 8px;
        cursor: pointer;
        font-size: 0.9rem;
    }
}

/* Small Devices (480px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    body {
        padding: 15px;
    }

    .glass-card {
        border-radius: 18px;
        flex-direction: column;
        width: 100%;
    }

    .left-panel {
        padding: 30px 20px;
        min-height: 220px;
        border-radius: 18px 18px 0 0;
    }

    .left-panel h2 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .left-panel p {
        font-size: 0.95rem;
    }

    .right-panel {
        padding: 30px 20px;
        border-radius: 0 0 18px 18px;
    }

    .right-panel h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .form-control {
        padding: 11px 13px;
        font-size: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .btn-gradient {
        padding: 12px;
        font-size: 1rem;
        min-height: 44px;
        margin-top: 20px;
    }

    .location-box {
        padding: 15px;
        margin-bottom: 20px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .form-group label {
        font-size: 0.95rem;
    }
}
/* --- PERBAIKAN TOMBOL MATA PASSWORD (REGISTER) --- */

/* 1. Style Wrapper Input Group */
.input-group {
    background: #f8f9fa; /* Warna dasar input */
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    /* Pastikan group yang menangani margin, bukan input di dalamnya */
    margin-bottom: 15px; 
}

/* 2. Input di dalam Group */
.input-group .form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 0 !important; /* PENTING: Ini yang bikin berantakan di HP */
    height: 46px; /* Tinggi seragam */
    border-radius: 10px !important; /* Reset radius */
}

/* 3. Ikon Mata */
.input-group-text {
    background: transparent !important;
    border: none !important;
    color: #6c757d;
    padding: 0 15px;
    cursor: pointer;
}

/* 4. Efek Focus */
.input-group:focus-within {
    background: white;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

/* KHUSUS MOBILE */
@media (max-width: 480px) {
    /* Reset margin input*/
    .form-control {
        margin-bottom: 12px; 
    }
    
    /* Tapi kalau inputnya ada di dalam input-group, hilangkan marginnya */
    .input-group .form-control {
        margin-bottom: 0 !important;
        padding: 10px 12px;
    }

    /* Pastikan kolom password kiri kanan di HP ada jarak */
    .col-6 {
        padding-right: 5px;
    }
    .col-6 + .col-6 {
        padding-left: 5px;
    }
}