.img-login {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    inset: 0;
}

.custom-gradient {
    background-image: linear-gradient(to bottom right, hsla(220, 60%, 12%, 0.85), hsla(220, 50%, 15%, 0.75), hsla(220, 40%, 20%, 0.7));
    position: absolute;
    inset: 0;
}

.container-login {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem;
    margin: 0 1rem;
}

.glass-card {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background-color: hsla(0, 0%, 100%, 0.12);
    border: 1px solid hsla(0, 0%, 100%, 0.18);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-card .logo {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.glass-card .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.glass-card .title {
    color: white;
    letter-spacing: -.025em;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
}

.glass-card .sub-title {
    color: #fff9;
    font-size: .875rem;
    line-height: 1.25rem;
    margin-top: .25rem;
}

/* Styling Utama Input */
.custom-input {
    display: flex;
    width: 100%;
    height: 3rem;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    line-height: 1.5rem;
    color: #ffffff;
    background-color: hsla(0, 0%, 100%, 0.08);
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    border-radius: 0.375rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

/* Responsive Media Query untuk Layar Medium ke Atas (md:text-sm) */
@media (min-width: 768px) {
    .custom-input {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

/* Styling Placeholder (placeholder:text-...) */
.custom-input::placeholder {
    color: hsla(0, 0%, 100%, 0.4);
}

/* Styling Saat Input Sedang Aktif/Fokus (focus-visible:...) */
.custom-input:focus-visible {
    outline: none;
    border-color: var(--accent, #ffffff);
    box-shadow:
        0 0 0 2px var(--background, #ffffff),
        0 0 0 2px var(--accent, #ffffff);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* Menahan perubahan warna background autofill dari browser */
    transition: background-color 5000s ease-in-out 0s;

    /* Tetap paksa warna teks agar sesuai dengan tema gelap Anda */
    -webkit-text-fill-color: #ffffff !important;
}

/* Styling Saat Input di-Disable (disabled:...) */
.custom-input:disabled {
    cursor: not-allowed;
    /* disabled:cursor-not-allowed */
    opacity: 0.5;
    /* disabled:opacity-50 */
}

:root {
    --primary-color: #1abc9c;
    /* Warna Teal/Tosca dari gambar */
    --bg-color: #34495e;
    /* Warna background gelap */
    --text-color: #ecf0f1;
    /* Warna teks putih/terang */
    --border-color: rgba(255, 255, 255, 0.3);
    /* Warna border awal */
}

/* Container Wrapper (flex items-center space-x-2 py-1) */
.checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-top: 1rem;
    /* Ubah kursor jadi tangan saat diarahkan */
}

/* Gaya Tombol Checkbox Custom */
.custom-checkbox {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-color);
    background-color: transparent;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    /* Efek transisi halus */
}

/* Gaya Ikon Centang (SVG) */
.checkbox-icon {
    width: 14px;
    height: 14px;
    color: white;
    /* Warna ikon centang */
    opacity: 0;
    /* Sembunyikan ikon secara default */
    transform: scale(0.5);
    /* Perkecil ikon saat tidak aktif */
    transition: all 0.2s ease-in-out;
}

/* Style Saat Checkbox dalam Keadaan DICENTANG (checked) */
.custom-checkbox[data-state="checked"] {
    background-color: var(--primary-color);
    /* Ubah background jadi teal */
    border-color: var(--primary-color);
    /* Ubah border jadi teal */
}

/* Tampilkan Ikon Saat Dicentang */
.custom-checkbox[data-state="checked"] .checkbox-icon {
    opacity: 1;
    /* Tampilkan ikon */
    transform: scale(1);
    /* Kembalikan ukuran ikon ke normal */
}

/* Style Saat Tombol Checkbox Fokus (Navigasi Keyboard) */
.custom-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--primary-color);
}

/* Input Checkbox Asli yang Disembunyikan */
.hidden-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Gaya Label Teks */
.checkbox-label {
    color: #fff9;
    font-size: .875rem;
    line-height: 1.25rem;
    user-select: none;
    /* Mencegah teks terpilih saat diklik cepat */
    cursor: pointer;
}

.btn-submit {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
    border-radius: .5rem;
    background: hsl(220 60% 25%);
    color: white;
    font-weight: 700;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Styling Utama Tombol (absolute right-3 top-1/2 -translate-y-1/2 ...) */
.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsla(0, 0%, 100%, 0.4);
    transition: color 0.2s ease-in-out;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efek Hover (hover:text-white) */
.password-toggle-btn:hover {
    color: #ffffff;
}

/* Styling Ukuran Ikon SVG (h-4 w-4) */
.eye-icon {
    width: 1rem;
    height: 1rem;
}