* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.kembali {
    position: absolute;
    top: 2%;
    left: 2%;

}

.kembali a {
    font-size: 2rem;
    color: black;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    /* border: #1e3a8a 1px solid; */
}

.kembali img {
    width: 35px;
    height: auto;
}

.register-container {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 1;
    /* transform: translateY(20px);
    animation: fadeSlide 0.8s ease forwards; */
}

@keyframes fadeSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nama {
    font-weight: 600;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 15px;
}

.register-container h2 {
    font-size: 1.6rem;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.alert {
    font-style: italic;
    color: red;
}

.input-group1 {
    text-align: left;
    margin-bottom: 18px;
}

.input-group1 select {
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
}

.input-group {
    position: relative;
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}

#confirm-password.error:focus {
    border-color: red !important;
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: #1e40af;
    /* background: grey; */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    color: white;
    opacity: 0.5;
    /* pointer-events: none; */
    /* Disabled default */
    cursor: pointer;
    transition: 0.3s;
}

.btn-register:hover {
    background: #1e3a8a;
}

.login-link {
    margin-top: 15px;
    font-size: 0.95rem;
}

.login-link a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

#togglePassword {
    position: absolute;
    top: 65%;
    right: 8px;
    transform: translate(-50%, -50%);
}

/* Validasi Visual: Merah jika error, Hijau jika sukses */
.confirm-password.error {
    border-color: var(--danger);
    background-color: #fef2f2;
}

/* Pesan Error (Teks Kecil) */
.error-msg {
    position: absolute;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    /* Tersembunyi default */
    /* display: flex; */
    align-items: center;
    gap: 5px;
}

/* Aktifkan tombol simpan jika valid */
.btn-register.active {
    opacity: 1;
    pointer-events: all;
}