* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #4F46E5, #7C3AED, #EC4899);
    position: relative;
    /* UBAH DI SINI: ganti 'hidden' jadi 'y-auto' atau 'auto' agar bisa di-scroll di HP */
    overflow-y: auto;
    /* TAMBAHKAN padding agar card tidak nempel/terpotong di batas atas & bawah layar HP */
    padding: 30px 15px;
}

body::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    top: -120px;
    left: -100px;
    /* Tambahkan agar background lingkaran tidak ganggu elemen form */
    pointer-events: none;
}

body::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    bottom: -180px;
    right: -180px;
    /* Tambahkan agar background lingkaran tidak ganggu elemen form */
    pointer-events: none;
}

.register-card {
    /* UBAH DI SINI: pakai max-width & width 100% agar responsif di HP kecil */
    width: 100%;
    max-width: 480px;
    padding: 30px 25px; /* Sedikit dirapatkan pad-nya agar muat di HP */
    border-radius: 25px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 20px 45px rgba(255, 255, 255, .25);
    color: white;
    z-index: 10;
    margin: auto; /* Memastikan card tetap di tengah */
}

.logo {
    width: 80px;
    height: 80px;
    margin: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    background: white;
    color: #6D28D9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
}

h2 {
    text-align: center;
    font-weight: 700;
}

p {
    text-align: center;
    color: #f5f5f5;
    margin-bottom: 25px;
}

.form-control {
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    border: none;
    color: white;
}

.form-control::placeholder {
    color: #eee;
}

.form-control:focus {
    background: rgba(255, 255, 255, .28);
    color: white;
    border: 1px solid white;
    box-shadow: none;
}

.btn-register {
    height: 50px;
    border: none;
    border-radius: 12px;
    background: white;
    color: #5B21B6;
    font-weight: bold;
    transition: .3s;
}

.btn-register:hover {
    background: #E9D5FF;
    color: #4C1D95;
    transform: translateY(-2px);
}

.login-link {
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    border-top: solid 1px rgba(255, 255, 255, .25);
    color: #f8f9fa;
}

.login-link a {
    margin-left: 6px;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

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